@include('docs.common-finance.style') @component('docs.common-finance.page-header', ['franchise' => $franchise]) Local Purchase Order @endcomponent @component('docs.common-finance.second-page-header', ['franchise' => $franchise, 'order' => $order, 'taxList' => $taxList, 'franchiseTaxes' => $franchiseTaxes]) @endcomponent @component('docs.common-finance.date-and-serial-number-detail') @slot('order_date') {{ $order->date_formatted }} @endslot @slot('serial_title') Purchase Order No. @endslot @slot('serial_number') LPO{{ $order->lpo_serial_number }} @endslot @endcomponent @if($order->company) @component('docs.common-finance.company-detail', ['company' => $order->company, 'franchise' => $franchise]) Supplier Details @slot('show_address') 1 @endslot @endcomponent @endif
@if(!empty($order->items)) @foreach($order->items as $item) @endforeach @endif @foreach($order->taxes as $tax) @php $countTax = ($tax->tax_value * $order->total_amount) / 100; @endphp @if($countTax != 0) @endif @endforeach
Description Total @if($order->currency == 'USD') USD @else {{ $currency }} @endif
{!! $item->description !!} {{ number_format($item->amount, 2) }}

Created By: {{ $order->owner->present()->name }} {{ date('d/m/Y H:i', strtotime($order->created_at)) }}
@if($order->lpo_edited_by) Edited By: {{ $order->lpoEditedBy->present()->name }} {{ date('d/m/Y H:i', strtotime($order->lpo_edited_on)) }}
@endif

@if($order->currency == 'USD') Exchange Rate: 1USD = {{ $currency }} {{ number_format($order->conversion_rate, 2) }} @endif
Sub-Total {{ number_format($order->total_amount,2) }}
{{ $tax->tax_value }}% @if($tax->tax_title == 'Withholding Tax') WHT @else {{ $tax->tax_title }} @endif {{ number_format(($tax->tax_value * $order->total_amount) / 100,2) }}
Total {{ number_format($order->sub_total_amount,2) }}

@include('docs.common-finance.terms', ['franchise' => $franchise]) @if($order->terms)

Additional Terms

{!! $order->terms !!} @endif