{{----}}
--}} {{----}} {{--
CONTRA VOUCHER
{{$company->company_name}}
Address: {{$company->company_address}}, {{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}
NUMBER. {{str_pad($contra_voucher->id, 5, '0', STR_PAD_LEFT)}}
DATE: {{\Carbon\Carbon::parse($contra_voucher->date)->toFormattedDateString()}} REFERENCE NO.: {{$contra_voucher->reference_number}}
RECEIVED BY: {{$contra_voucher->received_by}} RECEIVER ID: {{$contra_voucher->payee_id}}
@foreach($accounts as $account) @endforeach {{--*/ $total_amount_TSH = 0 /*--}} {{--*/ $total_amount= 0 /*--}} @foreach($contra_voucher->contraVoucherItems as $index=>$contra_voucher_item) {{--*/ $total_amount_tr= 0 /*--}} @foreach($accounts as $account) @if($contra_voucher_item->getAmountByAccountId($account) > 0) {{--*/ $total_amount_tr+= $contra_voucher_item->getAmountByAccountId($account) /*--}} @else @endif @endforeach {{--*/ $total_amount += $total_amount_tr/*--}} @endforeach {{----}}
SN Truck / Trailer Destination{{\App\Logistics\Facades\Permits::getPermitNameById($account)}} AMOUNT
{{++$index}} {{$contra_voucher_item->route_assignment->vehicle}} / {{$contra_voucher_item->route_assignment->trailer}} {{$contra_voucher_item->route_assignment->destination->name}}{{number_format($contra_voucher_item->getAmountByAccountId($account),2)}}-{{number_format($total_amount_tr,2)}}
TOTAL{{number_format($total_amount_TSH,2)}}{{number_format($total_amount,2)}}
Amount in Words: {{\App\Logistics\Facades\Logistics::numberToWord($total_amount,$contra_voucher->currency)}}

Authorized By: {{$contra_voucher->paid_by}} Receiver Signature: