@extends('backEnd.master') @push('css') @endpush @section('title') @lang('common.class') @endsection @section('mainContent')
@if(isset($sectionId)) @if(userPermission(266)) @endif @endif

@if(isset($sectionId)) @lang('academics.edit_class') @else @lang('academics.add_class') @endif

@if(isset($sectionId)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'global_class_update', 'method' => 'POST']) }} @else @if(userPermission(266)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'global_class_store', 'method' => 'POST']) }} @endif @endif
@if ($errors->has('name')) {{ @$errors->first('name') }} @endif
@if (generalSetting()->result_type == 'mark')
@if ($errors->has('pass_mark')) {{ @$errors->first('pass_mark') }} @endif
@endif

@foreach($sections as $section)
@if(isset($sectionId)) id, @$sectionId)? 'checked': ''}}> @else @endif
@endforeach @if($errors->has('section')) {{ @$errors->first('section') }} @endif
@php $tooltip = ""; if(userPermission(266)){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('academics.class_list')

@if (@generalSetting()->result_type == 'mark') @endif @foreach($classes as $class) @if (@generalSetting()->result_type == 'mark') @endif @endforeach
@lang('common.class') @lang('common.section')@lang('exam.pass_mark')@lang('student.students') @lang('common.action')
{{@$class->class_name}} @if(@$class->globalGroupclassSections) @foreach ($class->globalGroupclassSections as $section) {{@$section->globalSectionName->section_name}}-({{total_no_records($class->id, $section->globalSectionName->id)}}) {{ !$loop->last ? ', ':'' }} @endforeach @endif {{$class->pass_mark}} {{$class->records_count}} @php $routeList = [ userPermission(263) ? ''.__('common.edit').'' : null, userPermission(264) ? ''.__('common.delete').'' : null, ]; @endphp
@endsection @include('backEnd.partials.data_table_js') @push('script') @endpush