@extends('backEnd.master') @section('title') @lang('academics.subject') @endsection @section('mainContent')
@if(isset($subject)) @if(userPermission('subject_store')) @endif @endif
@if(isset($subject)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'subject_update', 'method' => 'POST']) }} @else @if(userPermission('subject_store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'subject_store', 'method' => 'POST']) }} @endif @endif

@if(isset($subject)) @lang('academics.edit_subject') @else @lang('academics.add_subject') @endif

@if ($errors->has('subject_name')) {{ @$errors->first('subject_name') }} @endif
@if(isset($subject))
subject_type == 'T'? 'checked':''}}>
subject_type == 'P'? 'checked':''}}>
@else
@endif
@if ($errors->has('subject_code')) {{ @$errors->first('subject_code') }} @endif
@if (@generalSetting()->result_type == 'mark')
@if ($errors->has('pass_mark')) {{ @$errors->first('pass_mark') }} @endif
@endif @php $tooltip = ""; if(userPermission('subject_store')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('academics.subject_list')

@if (@generalSetting()->result_type == 'mark') @endif @php $i=0; @endphp @foreach($subjects as $subject) @if (@generalSetting()->result_type == 'mark') @endif @endforeach
@lang('common.sl') @lang('academics.subject') @lang('academics.subject_type') @lang('academics.subject_code')@lang('academics.pass_mark')@lang('common.action')
{{++$i}} {{@$subject->subject_name}} {{trans('academics.'.($subject->subject_type == 'T'? 'theory':'practical'))}} {{@$subject->subject_code}}{{@$subject->pass_mark}} @php $routeList = [ userPermission('subject_edit') ? ''.__('common.edit').'':null, userPermission('subject_delete') ? ''.__('common.delete').'' : null, ] @endphp
@endsection @include('backEnd.partials.data_table_js')