@extends('business::layouts.blank') @section('title') {{ __('Invoice') }} @endsection @section('main_content')
{{ __('Mobile') }}: {{ $purchase->business->phoneNumber ?? '' }}
| {{ __('Supplier Name') }} | : {{ $purchase->party->name ?? '' }} |
| {{ __('Mobile') }} | : {{ $purchase->party->phone ?? '' }} |
| {{ __('Purchase By') }} | : {{ $purchase->user->role != 'staff' ? 'Admin' : $purchase->user->name }} |
| {{ __('Invoice') }} | : {{ $purchase->invoiceNumber ?? '' }} |
| {{ __('Date') }} | : {{ formatted_date($purchase->purchaseDate ?? '') }} |
| {{ $purchase->business->vat_name ?? '' }} | @if (!empty($purchase->business->vat_name)): {{ $purchase->business->vat_no ?? '' }} | @endif
| {{ __('SL') }} | {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Unit Price') }} | {{ __('Total Price') }} |
|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $detail->product->productName ?? '' }} | {{ $detail->quantities ?? '' }} | {{ currency_format($detail->productPurchasePrice ?? 0, 'icon', 2, business_currency()) }} | {{ currency_format($productTotal, 'icon', 2, business_currency()) }} |
| {{ __('Subtotal') }} | : | {{ currency_format($subtotal, 'icon', 2, business_currency()) }} |
| {{ __('Vat') }} | : | {{ currency_format($purchase->vat_amount, 'icon', 2, business_currency()) }} |
| {{ __('Shipping Charge') }} | : | {{ currency_format($purchase->shipping_charge, currency: business_currency()) }} |
| {{ __('Discount') }} @if ($purchase->discount_type == 'percent') ({{ $purchase->discount_percent }}%) @endif | : | {{ currency_format($purchase->discountAmount + $total_discount, currency: business_currency()) }} |
| {{ __('Total Amount') }} | : | {{ currency_format($subtotal + $purchase->vat_amount - ($purchase->discountAmount + $total_discount) + $purchase->shipping_charge, 'icon', 2, business_currency()) }} |
| {{ __('SL') }} | {{ __('Date') }} | {{ __('Returned Item') }} | {{ __('Quantity') }} | {{ __('Total Amount') }} |
|---|---|---|---|---|
| {{ $loop->iteration }} | {{ formatted_date($return->return_date) }} | {{ $detail->purchaseDetail->product->productName ?? '' }} | {{ $detail->return_qty ?? 0 }} | {{ currency_format($detail->return_amount ?? 0, 'icon', 2, business_currency()) }} |
| {{ __('Paid by') }} : {{ $purchase->payment_type_id != null ? $purchase->payment_type->name ?? '' : $purchase->paymentType }} |
| {{ __('Total Return Amount') }} | : | {{ currency_format($total_return_amount, 'icon', 2, business_currency()) }} |
| {{ __('Payable Amount') }} | : | {{ currency_format($purchase->totalAmount, 'icon', 2, business_currency()) }} |
| {{ __('Paid Amount') }} | : | {{ currency_format($purchase->paidAmount, 'icon', 2, business_currency()) }} |
| {{ __('Due') }} | : | {{ currency_format($purchase->dueAmount, 'icon', 2, business_currency()) }} |
| {{ __('SL') }} | {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Unit Price') }} | {{ __('Total Price') }} |
|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $detail->product->productName ?? '' }} | {{ $detail->quantities ?? '' }} | {{ currency_format($detail->productPurchasePrice ?? 0, 'icon', 2, business_currency()) }} | {{ currency_format($productTotal, 'icon', 2, business_currency()) }} |
| {{ __('Paid by') }} : {{ $purchase->payment_type_id != null ? $purchase->payment_type->name ?? '' : $purchase->paymentType }} |
| {{ __('Subtotal') }} | : | {{ currency_format($subtotal, 'icon', 2, business_currency()) }} |
| {{ __('Vat') }} | : | {{ currency_format($purchase->vat_amount, 'icon', 2, business_currency()) }} |
| {{ __('Shipping Charge') }} | : | {{ currency_format($purchase->shipping_charge, currency: business_currency()) }} |
| {{ __('Discount') }} @if ($purchase->discount_type == 'percent') ({{ $purchase->discount_percent }}%) @endif | : | {{ currency_format($purchase->discountAmount, currency: business_currency()) }} |
| {{ __('Total Amount') }} | : | {{ currency_format($purchase->totalAmount, 'icon', 2, business_currency()) }} |
| {{ __('Receive Amount') }} | : | {{ currency_format($purchase->paidAmount + $purchase->change_amount, currency: business_currency()) }} |
| {{ __('Change Amount') }} | : | {{ currency_format($purchase->change_amount, currency: business_currency()) }} |
| {{ __('Due') }} | : | {{ currency_format($purchase->dueAmount, currency: business_currency()) }} |