@php($cutAmount = 0)
@php($netPayable = max((float) ($purchase->remaining_amount ?? 0), 0))
@if ($shopLogo)
@endif
{{ $shopName }}
{{ $adminProfile?->display_address ?: 'N/A' }}
Phone: {{ $adminProfile->phone ?? 'N/A' }}
{{ __('Purchase Invoice') }}
{{ __('Dated:') }}
{{ \Illuminate\Support\Carbon::parse($purchase->purchase_date)->format('d/m/Y') }}
{{ __('Time:') }}
{{ $purchase->created_at->format('h:i A') }}
{{ __('Inv #:') }}
{{ $purchase->invoice_no }}
{{ __('Status:') }}
{{ ucfirst($purchase->status) }}
{{ __('Supplier:') }} {{ $purchase->supplier->display_name ?? 'N/A' }}
{{ __('Payment Status:') }} {{ ucfirst($purchase->payment_status ?? 'pending') }}
{{ __('Account:') }} {{ $purchase->account?->account_name ?? 'N/A' }}
{{ __('Paid By:') }} {{ $purchase->paid_by ?: 'N/A' }}
| {{ __('Item Description') }} |
{{ __('Price') }} |
{{ __('Qty.') }} |
{{ __('Amount') }} |
@foreach ($purchase->items as $item)
|
{{ $item->product?->display_name ?: ($item->product_name ?? __('Product')) }}
|
{{ number_format((float) $item->unit_price, 2) }} |
{{ number_format((float) $item->quantity, 2) }} |
{{ number_format((float) $item->sub_total, 2) }} |
@endforeach
{{ __('Total Items') }}
{{ number_format($purchase->items->count(), 2) }}
{{ __('Item Total') }}
Rs. {{ number_format((float) $purchase->items->sum('sub_total'), 2) }}
{{ __('Discount') }}
Rs. {{ number_format((float) $purchase->discount, 2) }}
{{ __('Shipping Cost') }}
Rs. {{ number_format((float) $purchase->shipping_cost, 2) }}
{{ __('Grand Total') }}
Rs. {{ number_format((float) $purchase->grand_total, 2) }}
{{ __('Received Amount') }}
Rs. {{ number_format((float) $purchase->received_amount, 2) }}
{{-- @if($cutAmount > 0)
{{ __('Cut Amount') }}
Rs. {{ number_format($cutAmount, 2) }}
@endif --}}
{{ __('Remaining Due:') }}
Rs. {{ number_format((float) $netPayable, 2) }}
@if (!empty($purchase->note))
{{ $purchase->note }}
@endif
* {{ __('Thanks for shopping with us') }} *
Powered By Power Edge IT Services SMC PVT LTD