@lang('messages.date'): {{ @format_date($purchase->transaction_date) }}
@lang('business.business'):
{{ $purchase->business->name }}
{{ $purchase->location->name }}
@if(!empty($purchase->location->landmark))
{{$purchase->location->landmark}}
@endif
@if(!empty($purchase->location->city) || !empty($purchase->location->state) || !empty($purchase->location->country))
{{implode(',', array_filter([$purchase->location->city, $purchase->location->state, $purchase->location->country]))}}
@endif
@if(!empty($purchase->business->tax_number_1))
{{$purchase->business->tax_label_1}}: {{$purchase->business->tax_number_1}}
@endif
@if(!empty($purchase->business->tax_number_2))
{{$purchase->business->tax_label_2}}: {{$purchase->business->tax_number_2}}
@endif
@if(!empty($purchase->location->mobile))
@lang('contact.mobile'): {{$purchase->location->mobile}}
@endif
@if(!empty($purchase->location->email))
@lang('business.email'): {{$purchase->location->email}}
@endif
@lang('purchase.ref_no'): #{{ $purchase->ref_no }}
@lang('messages.date'): {{ @format_date($purchase->transaction_date) }}
# |
@lang('product.product_name') |
Request Quantity |
Approved Quantity |
@php
$total_before_tax = 0.00;
@endphp
@foreach($purchase->purchase_lines as $purchase_line)
@php
$new_quantity = App\PurchaseLine::where('old_transaction_id', $purchase_line->transaction_id)
->where('product_id', $purchase_line->product_id)->first();
@endphp
{{ $loop->iteration }} |
{{ $purchase_line->product->name }}
@if( $purchase_line->product->type == 'variable')
- {{ $purchase_line->variations->product_variation->name}}
- {{ $purchase_line->variations->name}}
@endif
|
{{ $purchase_line->quantity }} |
{{ isset($new_quantity) ? $new_quantity->quantity : 0 }} |
@php
@endphp
@endforeach
{{-- Barcode --}}