{{-- resources/views/invoices/show.blade.php --}} @extends('layouts.app') @section('content')
Date: {{ $invoice->created_at->format('d M Y, h:i A') }}
{{ $invoice->subscriber->name }}
{{ $invoice->subscriber->email }}
@if($invoice->subscriber->phone){{ $invoice->subscriber->phone }}
@endif{{ $invoice->subscription->package->name ?? 'N/A' }}
{{ $invoice->subscription->start_date->format('d M Y') }} - {{ $invoice->subscription->end_date->format('d M Y') }}
Type: {{ ucfirst($invoice->invoice_type) }}
৳{{ number_format($payment->amount, 2) }}
{{ ucfirst($payment->method) }}
Ref: {{ $payment->reference_no }}
@endifNo payments yet
@endif৳{{ number_format($refund->amount, 2) }}
{{ str_replace('_', ' ', ucfirst($refund->refund_type)) }}
{{ $refund->note }}
@endifNo refunds yet
@endif