@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
@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}}
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 {{$rep->currentDiscountProfile()->start_date}} End date {{$rep->currentDiscountProfile()->end_date}}
Pilot US discount type {{$rep->currentDiscountProfile()->pilot_us_discount_type}} Pilot US {{$rep->currentDiscountProfile()->pilot_usd}}
Pilot CAD discount type {{$rep->currentDiscountProfile()->pilot_cad_discount_type}} Pilot CAD {{$rep->currentDiscountProfile()->pilot_cad}}
Loves discount type {{$rep->currentDiscountProfile()->loves_us_discount_type}} Loves {{$rep->currentDiscountProfile()->loves_usd}}
Reefer included {{$rep->currentDiscountProfile()->reefer_discount}} Discount computation {{$rep->discount_computation}}
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