@extends('docs.master', ['title' => 'Sales Order '.$model->number]) @section('content')
Bill To:
{{$model->client->person}},
{{$model->client->company}},
{{$model->client->billing_address}}
Ship To:
{{$model->client->person}},
{{$model->client->company}},
{{$model->client->shipping_address}}
@if($model->reference) @endif @if($model->quotation) @endif
Document Sales Order
Number: {{$model->number}}
Date: {{$model->date}}
Reference: {{$model->reference}}
Quotation: {{$model->quotation->number}}
Currency: {{$model->currency->code}}
Total: {{moneyFormat($model->total, $model->currency, false)}}
@foreach($model->items as $item) @foreach($item['taxes'] as $tax) @endforeach @endforeach @foreach(selectedTax($model->items) as $key => $tax) @endforeach
Item Code Item Description Unit Price Qty Total
{{$item->product->item_code}}
{{$item->product->description}}
{{moneyFormat($item->unit_price, $model->currency, false)}} {{$item->qty}} {{moneyFormat($item->qty * $item->unit_price, $model->currency, false)}}
{{$tax->name}} {{$tax->rate}}% +{{moneyFormat(($item->qty * $item->unit_price) * $tax->rate / 100, $model->currency, false)}}
@if($model->terms) @endif
@endsection