{{-- @php $permit = $invoice->mobileFoodPermit; @endphp --}}
{{-- {{dd('sdgsad')}} --}} @php $totalFee = 0; @endphp
PERMIT RECEIPT

Receipt Number: {{ $invoice->receipt_number }}
Permit Number: {{ $invoice->permit_number }}
Invoice Number: {{ $invoice->invoice_number }}
{{ $permit->est_name }}
{{ $permit->est_mailing_address }}
{{ $permit->est_mailing_city }}, {{ $permit->est_mailing_state }}, {{ $permit->est_mailing_zip }}
{{ $permit->est_phone }}

Collection Date: {{$invoice->payment_date ? date(config('site.dateFormat'),strtotime($invoice->payment_date)) : ''}}
Issuance of permit is contingent upon payment clearance from your financial institution.
@foreach ($invoice->details as $fee) @php $totalFee += $fee['amount']; @endphp @endforeach @if ($invoice->planReviewFee) @endif @if ($invoice->late_fee) @endif @if ($invoice->dayWiseAmount) @endif @if ($invoice->disc_or_add_amount) @if ($invoice->disc_or_add == 'Discount') @else @endif @endif
Health District Fees Amount
{{ $fee['description'] }} ${{ $fee['amount'] }}
Plan Review Fee ${{ $invoice->planReviewFee }}
Late Fee ${{ $invoice->late_fee }}
Day Wise Fee ${{ $invoice->dayWiseAmount }}
Discount {{ $invoice->disc_or_add_note ? '(' . $invoice->disc_or_add_note . ')' : '' }} -${{ $invoice->disc_or_add_amount }}
Additional {{ $invoice->disc_or_add_note ? '(' . $invoice->disc_or_add_note . ')' : '' }} +${{ $invoice->disc_or_add_amount }}

Total Amount Due $ {{ $invoice->total_amount ? $invoice->total_amount : '0' }}
Payment Details:
@foreach ($invoice->paymentHistory->where('payment_status', '2') as $history) @endforeach
Method of Payment Reference Number Amount Received
{{ $history->payment_mode ? $history->payment_mode : '' }} {{ $history->reference_number ? $history->reference_number : '' }} ${{ $history->amount ? $history->amount : '0' }}
Total Amount Received $ {{ $invoice->total_amount ? $invoice->total_amount : 0 }}