@if($rep->fuel_provider=='pilot')
@if($rep->pilotStatement->count()>0)
| Fuel provider |
Auth# |
Ticket# |
Invoice# |
Date |
Location |
Country |
Fuel cost |
Fuel units |
Invoice total |
Retail total |
FP Savings |
Edit |
Unlink |
@foreach($rep->pilotStatement as $statement)
| Pilot |
{{$statement->auth_no}} |
{{$statement->ticket_no}} |
{{$statement->invoice_no}} |
{{$statement->billing_date}} |
{{$statement->location}} |
{{$statement->country}} |
{{$statement->fuel_cost}} |
{{$statement->fuel_units}} |
{{$statement->invoice_total}} |
{{$statement->retail_total}} |
{{$statement->retail_total-$statement->invoice_total}} |
{{-- {{($statement->retail_total-$statement->invoice_total)/$statement->fuel_units}} | --}}
Edit |
Unlink |
@endforeach
@endif
@endif
@if($rep->fuel_provider=='loves')
@if(!empty($rep->lovesStatement()))
| Fuel provider |
Auth# |
Unit# |
Invoice# |
Date |
Location |
Store |
Retail total |
Edit |
Unlink |
@foreach(\App\LovesStatement::where('report_id', '=', $rep->id)->get() as $statement)
| Loves |
{{$statement->authorisation_no}} |
{{$statement->unit}} |
{{$statement->invoice_no}} |
{{$statement->date}} |
{{$statement->location}} |
{{$statement->store}} |
{{$statement->net_amount}} |
Edit |
Unlink |
@endforeach
@endif
@endif