@extends('backEnd.master') @section('title') @lang('academics.track_types') @endsection @section('mainContent')
@if (isset($track_types)) @if (userPermission('track_types_store')) @endif @endif
@if (isset($track_type)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['track_types-update', $track_type->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('track_types_store')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'track_types_store', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif @endif

@if (isset($track_type)) @lang('academics.edit_track_types') @else @lang('academics.add_track_types') @endif

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('count_of_students')) {{ $errors->first('count_of_students') }} @endif
@php $tooltip = ''; if (userPermission('track_types_store')) { $tooltip = ''; } elseif ( isset($track_types) && userPermission('track_types_edit') ) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('academics.track_types_list')

@foreach ($track_types as $track_type) @endforeach
@lang('academics.track_types') @lang('hr.count_of_students') @lang('common.action')
{{ $track_type->name }} {{ $track_type->count_of_students }} @if (userPermission('track_types_edit')) @lang('common.edit') @endif @if (userPermission('track_types_delete')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')