@if(isset($purchase->warehouse))
{{ $purchase->warehouse->name }}
{{ $purchase->warehouse->address }}
Mobile: {{ $purchase->warehouse->mobile }}
Email: {{ $purchase->warehouse->email }}
@endif
Billing To
@if($purchase->sale_type == \App\Lib\Enumerations\SaleType::$ECOM)
{{ $purchase->billing_full_name }}
{{ $purchase->billing_full_address }}
Mobile: {{ $purchase->billing_phone_number }}
@else
@if(isset($purchase->customer))
{{ $purchase->customer->name }}
{{ $purchase->customer->address }}
Mobile: {{ $purchase->customer->mobile }}
Email: {{ $purchase->customer->email }}
@endif
@endif
@if($purchase->sale_type == \App\Lib\Enumerations\SaleType::$ECOM)
Shipping To
{{ $purchase->shipping_full_name }}
{{ $purchase->shipping_full_address }}
Mobile: {{ $purchase->shipping_phone_number}}
@endif
Invoice
Date : {{ $purchase->date }}
Invoice Number: {{ $purchase->invoice_code }}
Payment Status:
@if($purchase->payment_status == \App\Lib\Enumerations\PaymentStatus::$PAID)
{{ "Paid" }}
@elseif($purchase->payment_status == \App\Lib\Enumerations\PaymentStatus::$DUE)
{{ "Due" }}
@else
{{ "Partial paid" }}
@endif
@if($purchase->payment_method)
{{ "Payment Method:". $purchase->payment_method }}
@endif
| No. |
Description |
Serial No |
Quantity |
Unit Price |
Discount |
Subtotal |
@php $sl=0; @endphp
@foreach($purchase->saleDetails as $purchaseDetails )
@php $sl++;
if (isset($purchaseDetails->productVariant) && isset($purchaseDetails->productVariant->variant)) {
$variant_name= $purchaseDetails->productVariant->variant->variant_name;
}
else
{
$variant_name='';
}
@endphp
| {{ $sl }} |
{{ $purchaseDetails->product->name ." (". $purchaseDetails->product->code .') '.$variant_name}}
|
{{ $purchaseDetails->serial_no }} |
{{ $purchaseDetails->quantity }} |
{{ $purchaseDetails->product_price }} |
{{ $purchaseDetails->discount_percentage ?? 0 }}
%
|
{{ $purchaseDetails->total_item_price }} |
@endforeach
| Total
Amount
|
{{ $purchase->saleDetails->sum('total_item_price') }} |
| Vat |
{{ $purchase->tax }} |
|
Discount
|
{{ $purchase->discount }} |
| Shipping
Cost
|
{{ $purchase->shipping_cost }} |
| Grand
Total
|
{{ $grandTotal=($purchase->saleDetails->sum('total_item_price')+$purchase->shipping_cost+$purchase->tax) -$purchase->discount }} |
| Paid
|
@if(isset($purchase->payment))
{{ $payment_amount=$purchase->payment->sum('payment_amount') }}
@else
{{ $payment_amount=0 }}
@endif
|
| Due |
{{ $grandTotal - $payment_amount }} |
In Word: {{ ucfirst($in_word). ' Taka Only' }}
| Previous Due: |
{{ $previous_due }} |
| Sales Amount: |
{{ $sales_amount }} |
| Paid Amount: |
{{ $paid_amount }} |
| Net Outstanding: |
{{ $net_outstanding }} |
| Created By |
@if(isset($purchase->createdBy))
{{ $purchase->createdBy->first_name .' '.$purchase->createdBy->last_name }}
@endif |
| Date: |
{{ $purchase->created_at }} |
@if(isset($purchase->updateBy))
| Updated By |
{{ $purchase->updateBy->first_name .' '.$purchase->updateBy->last_name }} |
| Date |
{{ $purchase->updated_at }} |
@endif
Note: {{ $purchase->note }}
| Date |
Paying by |
Amount |
Payment by |
Payment Note |
Collection Ref No |
@foreach($purchase->payment as $purchasePayments)
| {{ $purchasePayments->payment_date }} |
{{ $purchasePayments->paying_by }} |
{{ $purchasePayments->payment_amount }} |
@if(isset($purchasePayments->paymentBy))
{{ $purchasePayments->paymentBy->full_name }}
@endif |
{{ $purchasePayments->payment_note }} |
{{ $purchasePayments->collection_ref_no }} |
@endforeach
@if(isset($editModePaymentData))
{{ Form::model($editModePaymentData, array('route' => array('sale_payment.update', $editModePaymentData->id), 'method' => 'PUT','files' => 'true')) }}
@else
{{ Form::open(array('route' => 'sale_payment.store','enctype'=>'multipart/form-data')) }}
@endif
Please fill in the information below. The field labels marked with *
are required input fields.
{{ Form::select('account',$accounts, Input::old('account'), array('class' => 'form-control accounts_id','required')) }}
{{ Form::close() }}
| Date |
Paying by |
Amount |
Payment by |
Note |
Collection Ref No |
@foreach($purchase->payment as $purchasePayments)
| {{ $purchasePayments->payment_date }} |
{{ $purchasePayments->paying_by }} |
{{ $purchasePayments->payment_amount }} |
@if(isset($purchasePayments->paymentBy))
{{ $purchasePayments->paymentBy->full_name }}
@endif |
{{ $purchasePayments->payment_note }} |
{{ $purchasePayments->collection_ref_no }} |
@endforeach