@extends('backEnd.master') @section('title') @lang('student.student_group') @endsection @section('mainContent') @lang('student.student_group') @lang('common.dashboard') @lang('student.student_information') @lang('student.student_group') @if(isset($student_group)) @if(userPermission('student_group_store')) @lang('common.add') @endif @endif @if(isset($student_group)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'student_group_update', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission('student_group_store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'student_group_store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif @if(isset($student_group)) @lang('student.edit_student_group') @else @lang('student.add_student_group') @endif @lang('student.group') * @if ($errors->has('group')) {{ $errors->first('group') }} @endif @php $tooltip = ""; if(userPermission('student_group_store')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp @if(isset($student_group)) @lang('student.update_group') @else @lang('student.save_group') @endif {{ Form::close() }} @lang('student.student_group_list') @lang('student.group') @lang('student.students') @lang('common.actions') @foreach($student_groups as $student_group) {{$student_group->group}} {{@$student_group->students_count}} @if(userPermission('student_group_edit')) {{ __('common.edit')}} @endif @if(userPermission('student_group_delete')) {{ __('common.delete') }} @endif @lang('student.delete_group') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') @lang('common.delete') @endforeach @endsection @include('backEnd.partials.data_table_js')