@extends('docs.master', ['title' => 'Invoice '.$model->number]) @section('content')
@foreach($model->clients as $client)
To:
{{$client->client->person}}({{$client->client->id}}), {{$client->client->mobile_number}}, {{$client->client->billing_address}},
@endforeach

{{Settings()->get('company_name')}}




                     
                 
            
@if($model->due_date) @endif @if($model->reference) @endif
Document Invoice
Number: {{$model->number}}
Date: {{$model->date}}
Due Date: {{$model->due_date}}
Reference: {{$model->reference}}
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
Sr# Item DescriptionUnit Price QtyTotal
1{{$item->product->item_code}}
{{$item->item_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