@extends('backEnd.master') @section('title') @lang('fees.fees_master') @endsection @section('mainContent') @push('css') @endpush @php $setting = app('school_info'); if(!empty($setting->currency_symbol)) { $currency = $setting->currency_symbol; } else { $currency = '$'; } @endphp
@if(isset($fees_master)) @if(userPermission('fees-master-store')) @endif @endif

@if(isset($fees_master)) @lang('fees.edit_fees_master') @else @lang('fees.add_fees_master') @endif

@if(isset($fees_master)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('fees-master-update',$fees_master->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data', 'id' => 'fees_master_form']) }} @else @if(userPermission("fees-master-store")) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'fees-master-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'fees_master_form']) }} @endif @endif
@if($errors->any())
{{ 'Something went wrong, please try again' }}
@endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if(! directFees())
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@endif @if(isset($fees_master))
@error('amount') {{ $message }} @enderror
@else
@if ($errors->has('amount')) {{ $errors->first('amount') }} @endif
@endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
loader

{{ __('fees.instalment') }}

@if(isset($fees_master)) @if($fees_master->installments) @endif @else @endif
@if(isset($fees_master)) @php $i = 0; $totalPercentage = 0; @endphp @foreach ($fees_master->installments as $installment) @php $i++; $totalPercentage += $installment->percentange; @endphp @if(!$fees_master->installments) @endif @endforeach @else @endif
@lang('fees.title') @lang('fees.due_date') @lang('fees.amount')
@if ($errors->has('due_date')) {{ $errors->first('due_date') }} @endif
installmentAssign ? 'readonly' :'' }} value="{{ isset($installment) ? $installment->percentange : 0 }}"> @if ($errors->has('unPercentage')) {{ $errors->first('unPercentage') }} @endif
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
@lang('exam.total') @if ($errors->has('totalInstallmentAmount')) {{ $errors->first('totalInstallmentAmount') }} @endif
@php $tooltip = ""; if(userPermission("fees-master-store")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('fees.fees_master_list')

@foreach($fees_masters as $values) @endforeach
@lang('common.name') @lang('fees.amount') @lang('fees.installment') @lang('common.action')
@php $i = 0; @endphp @foreach($values as $fees_master) @php $i++; @endphp @if($i == 1) {{@$fees_master->feesGroups->name}} @endif @endforeach @foreach($values as $fees_master)
{{ currency_format((float)$fees_master->amount)}}
@endforeach
@foreach($values as $fees_master) @foreach ($fees_master->installments as $instalment) {{ $instalment->title .'['. $instalment->due_date .']'. '['. (( $instalment->percentange)) .']' }}
@endforeach @endforeach
@php $i = 0; @endphp @foreach($values as $fees_master) @php $i++; @endphp @if($i == 1) @endif @endforeach
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @push('scripts') @endpush