{{-- @extends('docs.master', ['title' => 'Bill '.$model->number]) --}} @extends(($model->value_master == 2) ? 'docs.mastertwo' : 'docs.master', ['title'=> 'Bill '.$model->number]) @section('content')
{{-- @section('heading')

Bills

@endsection --}} @if($model->value_master ==2) @section('heading_two')

Bill

@endsection






@endif @section('heading')

Bill

@endsection {{--

Bills

--}}

Bill From:
{{$model->vendor->person}},
{{$model->vendor->company}},
{{$model->vendor->billing_address}}
 
@if($model->due_date) @endif @if($model->reference) @endif @if($model->purchaseOrder) @endif
Document Bill
Number: {{$model->number}}
Date: {{$model->date}}
Due Date: {{$model->due_date}}
Reference: {{$model->reference}}
Purchase Order: {{$model->purchaseOrder->number}}
Currency: {{$model->currency->code}}
Total: {{moneyFormat($model->total, $model->currency, false)}}
@foreach($model->items as $item) @endforeach
Item Code Item Description Unit Price Qty Total
{{$item->vendor_reference}}
{{$item->product->description}}
({{$item->product->item_code}})
{{moneyFormat($item->unit_price, $model->currency, false)}} {{$item->qty}} {{moneyFormat($item->qty * $item->unit_price, $model->currency, false)}}
Total {{moneyFormat($model->total, $model->currency)}}
@if($model->terms) @endif
@endsection