@extends('billing.pdf.historyLayout') @section('history') @php($showPaid = globalPermission('payment-bill-by-bill')) @if ($showPaid) @endif @forelse ($bills as $bill) @if ($showPaid) @endif @empty @endforelse @if ($showPaid) @endif
Id Description Type Date AmountPaid
{{ $bill->id }} {{ $bill->description }} @if ($bill->extend_to_date)
Advance adjust extend: {{ $bill->extend_from_date ? date('d-M-Y', strtotime($bill->extend_from_date)) : 'N/A' }} → {{ date('d-M-Y', strtotime($bill->extend_to_date)) }} @endif @if ($bill->deleted_at)
Deleted {{ date('d-M-Y h:i A', strtotime($bill->deleted_at)) }} @endif
{{ $bill->billing_type }} {{ $bill->created_at ? date('d-M-Y h:i A', strtotime($bill->created_at)) : '' }} {{ number_format((float) $bill->bill_amount, 2) }}{{ number_format((float) $bill->paid_amount, 2) }}
No bill found.
Total {{ number_format((float) $bills->sum('bill_amount'), 2) }}{{ number_format((float) $bills->sum('paid_amount'), 2) }}
@endsection