@extends('backEnd.master') @section('title') @lang('fees.fees_type') @endsection @section('mainContent') @lang('fees.fees_type') @lang('common.dashboard') @lang('fees.fees') @if(isset($feesType)) @lang('fees.edit_fees_type') @else @lang('fees.fees_type') @endif @if(isset($feesType)) @if(userPermission('fees.fees-type-store')) @lang('common.add') @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 @lang('common.name') * @if ($errors->has('name')) {{ $errors->first('name') }} @endif {{-- {{old('fees_group')}} --}} {{ __('fees.fees_group') }} * @lang('fees.fees_group') @foreach($feesGroups as $feesGroup) @if(isset($feesType)) id == $feesType->fees_group_id? 'selected':''}}>{{$feesGroup->name}} @else id? 'selected':''):''}} >{{$feesGroup->name}} @endif @endforeach @if (session()->has('message-exist')) {{ session()->get('message-exist') }} @endif @if ($errors->has('fees_group')) {{ $errors->first('fees_group') }} @endif @lang('common.description') {{isset($feesType)? $feesType->description: old('description')}} @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 @if(userPermission('fees.fees-type-edit') && userPermission('fees.fees-type-store')) @if(isset($feesType)) @lang('common.update') @else @lang('common.save') @endif @endif {{ Form::close() }} @lang('fees.fees_type_list') @lang('common.name') @lang('fees.fees_group') @lang('common.description') @lang('common.action') @foreach($feesTypes as $feesType) {{$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 @lang('fees.delete_fees_type') × @lang('common.are_you_sure_to_delete') @lang('common.cancel') {{ Form::open(['route' => 'fees.fees-type-delete', 'method' => 'POST',]) }} @lang('common.delete') {{ Form::close() }} @endforeach @endsection @include('backEnd.partials.data_table_js')