@extends('layouts.app') @section('title', $invoice->invoice_number) @section('page-title', 'ইনভয়েস বিস্তারিত') @section('content')
{{-- LEFT: Invoice Detail --}}
{{-- Invoice Header --}}

{{ $invoice->invoice_number }}

{{ $invoice->status_label }}
তারিখ: {{ $invoice->issue_date->format('d M Y') }} @if($invoice->due_date)  |  পরিশোধের শেষ: {{ $invoice->due_date->format('d M Y') }} @endif
প্রিন্ট @if($invoice->due_amount > 0)
@csrf
@endif
{{-- Order Items --}}
আইটেম বিবরণ
@foreach($invoice->order->items as $item) @endforeach
পণ্য পরিমাণ একক মূল্য সাবটোটাল
{{ $item->cylinderType->name }} {{ $item->quantity }} ৳{{ number_format($item->unit_price, 2) }} ৳{{ number_format($item->subtotal, 2) }}
মোট: ৳{{ number_format($invoice->total_amount, 2) }}
পরিশোধ: ৳{{ number_format($invoice->paid_amount, 2) }}
বকেয়া: ৳{{ number_format($invoice->due_amount, 2) }}
{{-- Payment History --}}
পেমেন্ট ইতিহাস
@forelse($invoice->payments as $pay) @empty @endforelse
তারিখ পদ্ধতি Transaction ID পরিমাণ গ্রহণকারী
{{ $pay->paid_at->format('d M Y, h:i A') }} {{ $pay->method_label }} {{ $pay->transaction_id ?? '—' }} ৳{{ number_format($pay->amount, 2) }} {{ $pay->receivedBy->name }}
কোনো পেমেন্ট নেই।
{{-- RIGHT: Customer + Payment Form --}}
{{-- Customer Info --}}
গ্রাহক
{{ $invoice->customer->name }}
{{ $invoice->customer->phone }}
@if($invoice->customer->address)
{{ $invoice->customer->address }}
@endif

মোট বকেয়া: ৳{{ number_format($invoice->customer->due_balance, 2) }}
{{-- Add Payment --}} @if($invoice->due_amount > 0)
পেমেন্ট গ্রহণ
বকেয়া: ৳{{ number_format($invoice->due_amount, 2) }}
@csrf
@foreach($methodLabels as $val => $info)
@endforeach
@else

সম্পূর্ণ পরিশোধিত

@endif
@push('scripts') @endpush @endsection