@extends('adminlte::page') @section('content') @if ($message = Session::get('success'))

{{ $message }}

@endif

CPS transaction #{{$rep->auth_code}} ; Date: {{$rep->date->format('m/d/Y')}}; RT: {{$rep->ttp2+$rep->total_discount}};FP: {{$rep->merchant}}; FPC1 : @if($rep->fpc1()==0){{$rep->fpc1()}} @else {{$rep->fpc1()}} @endif

Edit Delete
@if($rep->fuel_provider=='pilot') @endif
Report ID {{$rep->report_id}}
Direct billing {{$rep->direct_billing}}
Auth code {{$rep->auth_code}}
Invoice {{$rep->invoice}}
Date {{$rep->date}}
Fuel provider {{$rep->fuel_provider}}
Pilot Independent {{$rep->pilot_independent}}
Country {{$rep->us_can}}
Driver {{$rep->driver}}
Unit {{$rep->unit}}
Carrier {{$rep->carrier->name}}
Broker {{$rep->carrier->broker->name}}
TTP2 {{$rep->ttp2}}
Discount {{$rep->total_discount}}
Retail total {{$rep->ttp2+$rep->total_discount}}
Merchant ID {{$rep->merchant_id}}
Merchant {{$rep->merchant}}
Volume {{$rep->volume}}
Price {{$rep->price}}
@if($rep->fuel_provider=='pilot') @if($rep->pilotStatement->count()>0) @foreach($rep->pilotStatement as $statement) {{-- --}} @endforeach
Fuel provider Auth# Ticket# Invoice# Date Location Country Fuel cost Fuel units Invoice total Retail total FP Savings Edit Unlink
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
@endif @endif @if($rep->fuel_provider=='loves') @if(!empty($rep->lovesStatement())) @foreach(\App\LovesStatement::where('report_id', '=', $rep->id)->get() as $statement) @endforeach
Fuel provider Auth# Unit# Invoice# Date Location Store Retail total Edit Unlink
Loves {{$statement->authorisation_no}} {{$statement->unit}} {{$statement->invoice_no}} {{$statement->date}} {{$statement->location}} {{$statement->store}} {{$statement->net_amount}} Edit Unlink
@endif @endif
@if($rep->direct_billing=='N')
@foreach($rep->indirectBilling as $statement) @endforeach
Auth# Unit# Invoice# Date Location State total Edit Unlink
{{$statement->auth_code}} {{$statement->unit}} {{$statement->invoice}} {{$statement->date}} {{$statement->location}} {{$statement->state}} {{$statement->total}} Edit Unlink
@endif
Start date @if(isset($rep->currentDiscountProfile()->start_date)){{$rep->currentDiscountProfile()->start_date}} @endif End date @if(isset($rep->currentDiscountProfile()->end_date)){{$rep->currentDiscountProfile()->end_date}} @endif
Pilot US discount type @if($rep->currentDiscountProfile()!='') {{$rep->currentDiscountProfile()->pilot_us_discount_type}} @endif Pilot US @if($rep->currentDiscountProfile()!=''){{$rep->currentDiscountProfile()->pilot_usd}} @endif
Pilot CAD discount type @if($rep->currentDiscountProfile()!=''){{$rep->currentDiscountProfile()->pilot_cad_discount_type}} @endif Pilot CAD @if($rep->currentDiscountProfile()!='') {{$rep->currentDiscountProfile()->pilot_cad}} @endif
Loves discount type @if($rep->currentDiscountProfile()!='') {{$rep->currentDiscountProfile()->loves_us_discount_type}} @endif Loves @if($rep->currentDiscountProfile()!='') {{$rep->currentDiscountProfile()->loves_usd}} @endif
Reefer included @if($rep->currentDiscountProfile()!='') {{$rep->currentDiscountProfile()->reefer_discount}} @endif Discount computation @if($rep->currentDiscountProfile()!='') {{$rep->discount_computation}} @endif
Discount {{$rep->total_discount}} TTP2 {{$rep->ttp2}}
Truck volume {{$rep->volume}} Reefer volume {{$rep->reefer_volume}}
Discount computation {{$rep->discount_computation}} Recalculate discount
@stop @section('css') @stop @section('js') @stop