@extends('backEnd.master') @section('title') @lang('fees.fees_type') @endsection @section('mainContent')

@lang('fees.fees_type')

@if(isset($feesType)) @if(userPermission('fees.fees-type-store')) @endif @endif
@if(isset($feesType)) {{ Form::open(['class' => 'form-horizontal','route' => 'fees.fees-type-update', 'method' => 'POST']) }} @else @if(userPermission('fees.fees-type-store')) {{ Form::open(['class' => 'form-horizontal', 'route' => 'fees.fees-type-store', 'method' => 'POST']) }} @endif @endif

@if(isset($feesType)) @lang('fees.edit_fees_type') @else @lang('fees.add_fees_type') @endif

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{-- {{old('fees_group')}} --}}
@if (session()->has('message-exist')) {{ session()->get('message-exist') }} @endif @if ($errors->has('fees_group')) {{ $errors->first('fees_group') }} @endif
@php $tooltip = ""; if(userPermission("fees.fees-type-store")){ $tooltip = ""; }elseif(isset($feesType) && userPermission('fees.fees-type-edit')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('fees.fees_type_list')

@foreach($feesTypes as $feesType) @endforeach
@lang('common.name') @lang('fees.fees_group') @lang('common.description') @lang('common.action')
{{$feesType->name}} {{@$feesType->fessGroup->name}} {{@$feesType->description}} @if(userPermission('fees.fees-type-edit')) @lang('common.edit') @endif @if(userPermission("fees.fees-type-delete")) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')