@extends('backEnd.master') @section('title') @lang('fees.fees_type') @endsection @section('mainContent') @lang('fees.fees_type') @lang('common.dashboard') @lang('fees.fees_collection') @lang('fees.fees_type') @if(isset($fees_type)) @if(userPermission("fees_type_store")) @lang('common.add') @endif @endif @if(isset($fees_type)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'fees_type_update', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission("fees_type_store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'fees_type_store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif @if(isset($fees_type)) @lang('fees.edit_fees_type') @else @lang('fees.add_fees_type') @endif @lang('common.name') * @if ($errors->has('name')) {{ $errors->first('name') }} @endif {{-- {{old('fees_group')}} --}} @lang('fees.fees_group') * @foreach($fees_groups as $fees_group) @if(isset($fees_type)) id == $fees_type->fees_group_id? 'selected':''}}>{{$fees_group->name}} @else id? 'selected':''):''}} >{{$fees_group->name}} @endif @endforeach @if (session()->has('message-exist')) {{ session()->get('message-exist') }} @endif @if ($errors->has('fees_group')) {{ $errors->first('fees_group') }} @endif @lang('fees.description') {{isset($fees_type)? $fees_type->description: old('description')}} @php $tooltip = ""; if(userPermission("fees_type_store")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp @if(isset($fees_type)) @lang('fees.update_content') @else @lang('fees.save_content') @endif {{ Form::close() }} @lang('fees.fees_type_list') @lang('common.name') @lang('fees.fees_group') @lang('common.description') @lang('common.action') @foreach($fees_types as $fees_type) {{@$fees_type->name}} {{@$fees_type->fessGroup->name}} {{@$fees_type->description}} @if(userPermission('fees_type_edit')) @lang('common.edit') @endif @if(userPermission('fees_type_delete')) @if(!@$fees_type->un_semester_label_id) @lang('common.delete') @endif @endif @lang('fees.delete_fees_type') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') @lang('common.delete') @endforeach @endsection @include('backEnd.partials.data_table_js')