@extends('layouts.master') @section('style') @endsection @section('content') @php $start_date = ''; $end_date = ''; if (!empty(request()->get('start_date'))) { $start_date = request()->get('start_date'); } else { $start_date = \Carbon\Carbon::now()->startOfMonth(); } if (!empty(request()->get('end_date'))) { $end_date = request()->get('end_date'); } else { $end_date = \Carbon\Carbon::now()->endOfMonth(); } @endphp

Carrier Profile

Total Rebates
$ {{ number_format($rowa['Total'], 2) }}
{{ date('F', strtotime('-1 month')) }} Rebates
$ {{ number_format($rowaP['Total'], 2) }}
YTD Rebates
$ {{ number_format($ytd_rebate['Total'], 2) }}
Lifetime Rebates
$ {{ number_format($lifetime_rebate['Total'], 2) }}
Total Gallons
{{ number_format($totalGallons, 2) }}
Total In-Network Gallons
{{ number_format($In_Network_Gallons->TotalGallons, 2) }}
Total Out-Network Gallons
{{ number_format($Out_Network_Gallons->TotalGallons, 2) }}
Average Savings
{{ number_format($totalAvrage, 2) }}
{{ number_format($In_Network_Gallons->Total) }}
Transactions
{{ number_format($In_Network_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($In_Network_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($In_Network_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($In_Network_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($In_Network_Gallons->TotalGallons) ? number_format($In_Network_Gallons->TotalRebate / $In_Network_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings
{{ $Out_Network_Gallons->Total }}
Transactions
{{ number_format($Out_Network_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($Out_Network_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($Out_Network_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($Out_Network_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($Out_Network_Gallons->TotalGallons) ? number_format($Out_Network_Gallons->TotalRebate / $Out_Network_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings
{{ $Pilot_Gallons->Total }}
Transactions
{{ number_format($Pilot_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($Pilot_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($Pilot_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($Pilot_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($Pilot_Gallons->TotalGallons) ? number_format($Pilot_Gallons->TotalRebate / $Pilot_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings
{{ $TA_Gallons->Total }}
Transactions
{{ number_format($TA_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($TA_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($TA_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($TA_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($TA_Gallons->TotalGallons) ? number_format($TA_Gallons->TotalRebate / $TA_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings
{{ $Loves_Gallons->Total }}
Transactions
{{ number_format($Loves_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($Loves_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($Loves_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($Loves_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($Loves_Gallons->TotalGallons) ? number_format($Loves_Gallons->TotalRebate / $Loves_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings
{{ $One9_and_Express_Gallons->Total }}
Transactions
{{ number_format($One9_and_Express_Gallons->TotalGallons, 2) }}
Gallons
${{ number_format($One9_and_Express_Gallons->TotalCharges, 2) }}
Charges
${{ number_format($One9_and_Express_Gallons->AvgPrice, 2) }}
Avg Retail
${{ number_format($One9_and_Express_Gallons->TotalRebate, 2) }}
Total Rebates
${{ !empty($One9_and_Express_Gallons->TotalGallons) ? number_format($One9_and_Express_Gallons->TotalRebate / $One9_and_Express_Gallons->TotalGallons, 2) : '0.00' }}
Avg Savings

Gallons

@foreach($gallonsDataTable as $index => $totalGallonsHead) @php $tabId = ""; if($index == 'In Network Gallons'){ $tabId = '#'; }elseif($index == 'Out Network Gallons'){ $tabId = '#outNeworkGallons'; }elseif($index == 'TA Gallons'){ $tabId = '#taGallons'; }elseif($index == 'Pilot Gallons'){ $tabId = '#pilotGallons'; } elseif($index == 'Loves Gallons'){ $tabId = '#lovesGallons'; }elseif($index == 'One9 and Express Gallons'){ $tabId = '#pilotOne9ExpressGallons'; }elseif($index == 'PilotFJ'){ $tabId = '#'; } @endphp @if($index != 'Total') @endif @endforeach @foreach($gallonsDataTable as $index => $totalGallonsHead) @if($index == 'Total') @endif @endforeach

Pilot/FJ Gallons by State {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

TA/Petro Gallons by State {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

Loves Gallons by State {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

Out of Network Gallons {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

Pilot One9 and Express Gallons Details {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

{!! $dataTable->table() !!}

Gallons By State {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

{{--

Miles By State {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

--}}

Gallons by Store {{ date('m/d/Y', strtotime($start_date)) . ' - ' . date('m/d/Y', strtotime($end_date)) }}

Gallons by State

Gallons by Day

Gallons per Chain

@endsection() @section('script') {!! $dataTable->scripts() !!} @endsection()