@extends('backend.layouts.app') @section('content')

Subscription Invoice Report

{{-- Summary --}}
Total Invoice Amount
৳ {{ number_format($totalAmount, 2) }}
Total Paid
৳ {{ number_format($totalPaid, 2) }}
Total Unpaid
৳ {{ number_format($totalUnpaid, 2) }}
{{-- Print Button --}}
{{-- Invoice Table --}}
@forelse($invoices as $key => $invoice) @empty @endforelse
# Invoice No Invoice Date Amount Payment Status Payment Type Transaction No Received Date Received By Remark
{{ $invoices->firstItem() + $key }} {{ $invoice->invoice_no }} {{ $invoice->invoice_date ? $invoice->invoice_date->format('Y-m-d') : '-' }} ৳ {{ number_format($invoice->amount, 2) }} @if ($invoice->payment_status == 'paid') Paid @else Unpaid @endif {{ ucfirst(str_replace('_', ' ', $invoice->payment_type ?? '-')) }} {{ $invoice->transaction_no ?? '-' }} {{ $invoice->received_date ?? '-' }} {{ $invoice->received_by ?? '-' }} {{ $invoice->remark ?? '-' }}
No invoices found.
{{-- Pagination --}} @if ($invoices instanceof \Illuminate\Pagination\LengthAwarePaginator)
{{ $invoices->links('backend.layouts.paginate') }}
@endif @endsection @push('script') @endpush