@extends('layouts.master') @section('style') @endsection() @section('content')

Welcome, {{ Auth::user()->name }}

@if($rowc1['CONTRACT_ID'] == "") {{ number_format($rowc['Total'],2) }} @endif @if($rowc1['CONTRACT_ID'] != "" && $rowc1['C411'] != "0006332001871") {{ "..." }} @php $callEsfAjax= true; @endphp @endif @if($rowc1['CONTRACT_ID'] != "" && $rowc1['C411'] == "0006332001871" ) {{ "0.00" }} @endif
Available Credit
EFS Customer #: {{ $rowc1['C411'] }}
{{ $rowf['Total'] }}
Active Fuel Cards
Add Fuel Card
@if($rowga['Total']) {{ number_format($rowga['Total'],0) }} @else {{ "0.00" }} @endif
Diesel Gallons {{ number_format($rowg['Total'],0) }}
MTD Gallons
$ {{ number_format($rowa['Total'],2) }}
Rebates this Month

Previous Month: $ {{ number_format($rowaP['Total'],2) }}
Download Our Fuel Finder App on the App Stores

MTD Rebates By Unit #

@if(!empty($data22)) @foreach($data22 as $rowss) @php if($rowss->UNIT != "") { $sql223 = "SELECT sum(`QTY`) AS TotalGallons,`PRODUCT_CODE` FROM FUEL_PROCESS WHERE MONTH(TRANS_DATE) = MONTH(NOW()) and SUBFLEET ='".getAuthMemberId()."' AND `PRODUCT_CODE` = 'ULSD' AND `LocationID` NOT IN(1,3) AND `UNIT` = '".$rowss->UNIT."'"; $rows2s = DB::select(DB::raw($sql223)); $rows2s = $rows2s[0]; } @endphp @php $rows2s->TotalGallons = 0; @endphp @endforeach() @else @endif
Unit # Driver Total Rebates Discount In Network Out of Network Gallons In Network
{{ $rowss->UNIT }} {{ strtoupper($rowss->DRIVER) }} $ {{ number_format($rowss->Total,2) }} $ {{ number_format(($rowss->Total/($rowss->TotalGallons+$rows2s->TotalGallons)),2) }} {{ number_format($rowss->TotalGallons,2) }} {{ $rows2s->TotalGallons }} {{ number_format(100 *($rowss->TotalGallons / ($rows2s->TotalGallons+$rowss->TotalGallons)),0) }} %
No Data Found

{{ (isset($_GET['month']) && !empty($_GET['month']) ? date("F", mktime(null, null, null, $previousMonth)) : 'Previous') }} Month Rebates By Unit #

@if(!empty($data33)) @foreach($data33 as $rowss) @php if($rowss->UNIT != "") { $sql223 = "SELECT sum(`QTY`) AS TotalGallons,`PRODUCT_CODE` FROM FUEL_PROCESS WHERE SUBFLEET ='".getAuthMemberId()."' AND `PRODUCT_CODE` = 'ULSD' AND `LocationID` NOT IN(1,3) AND MONTH(TRANS_DATE) = MONTH(NOW()- INTERVAL 1 MONTH) AND YEAR(TRANS_DATE) = YEAR(NOW()- INTERVAL 1 MONTH)AND `UNIT` = '".$rowss->UNIT."'"; $rows2s = DB::select(DB::raw($sql223)); $rows2s = $rows2s[0]; } @endphp @php $rows2s->TotalGallons = 0; @endphp @endforeach @else @endif
Unit # Driver Total Rebates Avg Rebate In Network Out of Network Gallons In Network
{{ $rowss->UNIT }} {{ strtoupper($rowss->DRIVER) }} $ {{ number_format($rowss->Total,2) }} $ {{ number_format(($rowss->Total/($rowss->TotalGallons+$rows2s->TotalGallons)),2) }} {{ number_format($rowss->TotalGallons,2) }} {{ $rows2s->TotalGallons }} {{ number_format(100 *($rowss->TotalGallons / ($rows2s->TotalGallons+$rowss->TotalGallons)),0) }} %
No Data Found

Out of Network Gallons

@forelse($out_of_network as $value) @empty @endforelse()
Date Unit Card # Location Item Retail Qty Amount
{{ date('m/d/Y', strtotime($value->{'Transaction Date'})) }} {{ $value->{'Unit'} }} {{ $value->{'Card Number'} }} {!! '' . $value->{'Location Name'} . ' '. $value->{'Location City'} . ' ' . $value->{"Location State/Province"}.'' !!} {{ $value->{'Product Code'} }} {!! '
$ ' . number_format($value->{'Price Per Unit'}, 2) . '
' !!}
{{ number_format($value->{'Quantity'}, 2) }} {!! '
$ ' . number_format($value->{'Amount'}, 2) . '
' !!}
No Data Found

Gallons by Store

@forelse($gallons_by_store as $value) @php $checkEmailAlert = App\Models\EmailLocation::where('EMAIL', getAuthMemberInfo()->email)->where('LOCATION_ID', $value->{'LocationID'})->where('VENDOR_ID', $value->{'StoreID'})->first(); @endphp @empty @endforelse()
Count Location QTY AVG RATE AVG REBATE Alert
{{ '('.$value->{'totalCount'}.')' }} {{ $value->{'LOCATION'} }} {{ number_format($value->{'QTY'}, 2) }} {{ number_format($value->{'RATE'}, 3) }} {{ number_format($value->{'REBATE'}, 3) }} @if($checkEmailAlert) @else @endif
No Data Found

Gallons by Month

MTD Gallons by State

Previous Month Rebates

MTD Gallons by Day

MTD Gallons per Chain

@endsection() @section('script') @endsection()