@extends('layouts.admin') {{ config('app.name', 'Laravel') }} | Admin | Fee Request @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Records / Fee Request

@php $yearRange = session('year_range'); // Example: "2023-2024" $currentDate = now(); [$startYear, $endYear] = explode('-', $yearRange); $startDate = \Carbon\Carbon::create($startYear, 4, 1, 0, 0, 0); // April 1st $endDate = \Carbon\Carbon::create($endYear, 3, 31, 23, 59, 59); // March 31st @endphp @if (isset($invoices) && count($invoices) > 0 && $invoices->where('payment_status', 'Pending')->count() > 0)
@endif @if (isset($invoices) && count($invoices) > 0 && $invoices->where('payment_status', 'Completed')->count() > 0)
@endif
{{ $request }} Request
{{-- Bulk ZIP download button (hidden until user clicks your filter button) --}}
@include('components.datefilter')
@if (isset($invoices) && count($invoices) > 0) @foreach ($invoices as $key => $invoice) @endforeach @else @endif
S.No Student Name Session Class Total Fee Fee Paid Pending Fee Late Fee Status Created Date Due Date Actions
@if ($request == 'Complete') {{-- Completed page: apply strict condition --}} @if ($invoice->payment_status == 'Completed' && !empty($invoice->fee_receipt)) @else @endif @else {{-- Partial & Pending page: always enable --}} @endif {{ $key + 1 }} {{ $invoice->first_name }} {{ $invoice->last_name }} {{ $invoice->session }} {{ $invoice->class_name }} {{ $invoice->total_fee }} {{ $invoice->amountpaid }} {{ $invoice->remaining_fee }} {{ $invoice->late_fee }} {{ $invoice->payment_status }} {{ \Carbon\Carbon::parse($invoice->created_at)->format('d-m-Y') }} @if ($invoice->due_date) {{ \Carbon\Carbon::parse($invoice->due_date)->format('d-m-Y') }} @else No due date @endif
No Record found
@endsection