@extends('layouts.app') @section('title') Student Invoice @endsection @push('custom-styles') @endpush @section('content')

Invoice Invoice No: {{ $invoice->invoice_no }}


logo

{{ $institution->institution_name }},
{{ $institution->institution_address }}

To,

{{ $student->first_name }} {{ $student->last_name }}

{{ $student->address }}

Invoice Date : {{ date('d-m-Y') }}

Course : {{ $student->program_name }}

@if($invoice->invoice_type_id == 1 || $invoice->invoice_type_id == "1") @foreach ($other_fees as $other_fee) @endforeach @elseif($invoice->invoice_type_id == 2 || $invoice->invoice_type_id == "2") @foreach ($invoice_det as $invoice_dt) @endforeach @else @endif
# Fees Type Amount
1 Program Fees K{{ number_format($program_fees->program_amount) }}
{{ $loop->index + 2 }} {{ $other_fee->fee_name }} K{{ number_format($other_fee->fee_amount) }}
{{ $loop->index + 2 }} {{ $invoice_dt->fee_name }} K{{ number_format($invoice_dt->invoice_amount) }}
{{--

Minimum amount to pay : K{{ number_format($minimum_amount) }}

--}}
@if($invoice->invoice_type_id == 1 || $invoice->invoice_type_id == "1")

Total : K{{ number_format($program_fees->program_amount + $other_fees_total) }}

@elseif($invoice->invoice_type_id == 2 || $invoice->invoice_type_id == "2") @foreach ($invoice_det as $invoice_dt)

Total : K{{ number_format($invoice_dt->invoice_amount) }}

@endforeach @else @endif

@endsection