{{-- @extends('docs.master', ['title' => 'Bill ']) --}} {{-- @extends('docs.master', ['title' => 'Bill '.$model->number]) --}} @extends(($data['value'] == 2) ? 'docs.mastertwo' : 'docs.master', ['title'=> 'Bills ']) @section('content')
Bills
@endsection --}} @if($data['value'] ==2) @section('heading_two')Bills
@endsectionBills
@endsection {{--
| ID | Number | Date | Vendor | Currency | Status | Shipping Status | Amount | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$item->id}} | {{$item->number}} | {{$item->date}} | {{$item->vendor->person}} | {{$item->currency}} | @if($item->status_id == 1){Billed | }@elseif($item->status_id == 2){Draft | }@endif{{(isset($item->shipping_status->text) ? $item->shipping_status->text : '')}} | {{number_format($item->total,2)}} | ||||||||||||
| --}} | Total | {{number_format($model->sum('total'),2)}} {{-- {{moneyFormat($model->total, $model->currency)}} --}} | ||||||||||||||||||