@extends('backend.invoice.master') @php($title= 'Payment Invoice') @section('title') {{ $title }} @endsection @section('title-tag') {{ $payment->receipt_no }} @endsection @section('body')

@php($student = $payment->student)
Name: {{ $student->name }} Mobile: {{ $student->mobile }} Address: {{ $student->address }}
Date: {{ dateFormat($payment->created_at,'d-m-Y') }} Time: {{ dateFormat($payment->created_at,'h:m:i') }} Receipt No: {{ $payment->receipt_no }}
@php($totalFee = $student->monthly_fee*count($payment->payments)) @php($totalDiscount = $student->discount*count($payment->payments)) @php($totalPayable = $totalFee - $totalDiscount)
Sl Months Monthly Fee (Tk.) Total (Tk.) Discount (Tk.) Received (Tk.)
1
    @foreach($payment->payments as $monthlyPayment)
  • {{ $monthlyPayment->month->code }}-{{ $monthlyPayment->year }}
  • @endforeach
{{ $student->monthly_fee }}{{ numberFormat($totalFee) }}{{ numberFormat($totalDiscount) }}{{ numberFormat($totalPayable) }}
In Word: {{ Illuminate\Support\Str::upper(convertNumberToWord($totalPayable)) }}
@endsection