@php($query = $data['query']) @php($student = $data['student']) @php($monthlyFee = $data['monthlyFee']) @php($labSubjects = $data['labSubjects']) @php($classItems = $data['classItems']) @php($months = $data['months']) @php($query['student_id'] = $student->id) @extends('backend.master') @section('document-title') Invoice Creation Form @endsection @section('page-title') Invoice Creation Form @endsection @section('active-breadcrumb-item') Invoice Creation Form @endsection {{--This file must be included if Bootstrap Datatable is needed--}} @include('backend.includes.data-table') {{--Main Content of the page goes here--}} @section('content')
@csrf

Invoice for {{ $student->name }}, Class: {{ $monthlyFee->class->code }}, Session: {{ $query->year }} - {{ $query->year+1 }}

@if(user()->role->code=='developer') @endif @php($classItemCount=0) @foreach($classItems as $classItem) @if($classItem->item->billing_cycle!=3) @php($classItemCount++) @php($nonMonthlyStatus = null) @php($query['item_id'] = $classItem->item_id) @if($classItem->item->billing_cycle==1) @php($nonMonthlyPaymentItem = OneTimeFeeCheck($query)) @elseif($classItem->item->billing_cycle==2) @php($nonMonthlyPaymentItem = YearlyFeeCheck($query)) @endif @if($nonMonthlyPaymentItem) @php($nonMonthlyStatus = $nonMonthlyPaymentItem->status) @endif @if(user()->role->code=='developer') @endif @endif @endforeach
Fee Other Than Tuition Fee
Select Items
Amount Discount Receivable Status Note
@if($nonMonthlyStatus === 2 or $nonMonthlyStatus === null)
@else {{ $classItem->item->name }} @endif
{{ numberFormat($classItem->amount) }} @if($nonMonthlyPaymentItem) {{ numberFormat($classItem->amount-$nonMonthlyPaymentItem->discount) }} @else {{ numberFormat($classItem->amount) }} @endif @if($nonMonthlyPaymentItem and $nonMonthlyPaymentItem->status == 2) Unpaid @elseif($nonMonthlyPaymentItem and $nonMonthlyPaymentItem->status == 1) Paid @else Not Found @endif @if($nonMonthlyStatus === 2) @else -- @endif
Monthly Tuition Fee Information
Tuition Fee
BDT
Discount
%
Receivable
BDT
@if($labSubjects['lab_fee']>0)
Monthly Lab Fee Information
Subjects: @foreach($labSubjects['subjects'] as $subject) {{ $subject->name }} @endforeach Per Subject Fee: {{ numberFormat($labSubjects['per_month_per_subject']) }}/- Total Lab Fee: {{ numberFormat($labSubjects['lab_fee']) }}/-
@endif
@php($checkedMonthCount=0) @foreach($months as $month) @php($monthlyStatus = null) @php($query['month_id'] = $month->id) @php($monthlyFeeChecked = MonthlyFeeCheck($query)) @if($monthlyFeeChecked) @php($checkedMonthCount++) @php($monthlyStatus = $monthlyFeeChecked->status) @endif @endforeach
Tuition Fee
@if(($monthlyFeeChecked and $monthlyFeeChecked->status == 2) or !$monthlyFeeChecked)

@else {{ $month->name }}
@endif @if($monthlyFeeChecked and $monthlyFeeChecked->status == 2) Unpaid @elseif($monthlyFeeChecked and $monthlyFeeChecked->status == 1) Paid @endif
@if(user()->role->code=='developer')
@foreach($months as $month) @php($query['month_id'] = $month->id) @php($monthlyFeeChecked = MonthlyFeeCheck($query)) @endforeach
Tuition Fee Delete
@if($monthlyFeeChecked and $monthlyFeeChecked->status == 2)

@endif
@endif
@endsection {{--this script override all--}} @section('script') @include('backend.students.invoice.script') {{-- --}} @endsection {{--this style override all--}} {{--@section('style') @include('backend.students.invoice.style') @endsection--}}