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

Fuel Card View

Real Time EFS Data

@if (!empty($live_efs_data)) @php $live_efs_data = $live_efs_data['ns5getCardResponse']['result']; @endphp @if (!empty($live_efs_data)) @php $cardNumber = $live_efs_data['cardNumber']; $status = $live_efs_data['header']['status']; $infos = $live_efs_data['infos']; $driver_name = ''; $unit_no = ''; $driver_id = ''; $trlr = ''; $trip = ''; $ppin = ''; if (!empty($infos)) { foreach ($infos as $row => $val) { if (isset($val['infoId']) && $val['infoId'] != '') { if ($val['infoId'] == 'DRID') { if (!is_array($val['reportValue'])) { $driver_id = $val['reportValue']; } if (!is_array($val['matchValue'])) { $driver_id = $val['matchValue']; } } if ($val['infoId'] == 'NAME') { if (!is_array($val['reportValue'])) { $driver_name = $val['reportValue']; } if (!is_array($val['matchValue'])) { $driver_name = $val['matchValue']; } } if ($val['infoId'] == 'UNIT') { if (!is_array($val['reportValue'])) { $unit_no = $val['reportValue']; } if (!is_array($val['matchValue'])) { $unit_no = $val['matchValue']; } } if ($val['infoId'] == 'TRLR') { if (!is_array($val['reportValue'])) { $trlr = $val['reportValue']; } if (!is_array($val['matchValue'])) { $trlr = $val['matchValue']; } } if ($val['infoId'] == 'TRIP') { if (!is_array($val['reportValue'])) { $trip = $val['reportValue']; } if (!is_array($val['matchValue'])) { $trip = $val['matchValue']; } } if ($val['infoId'] == 'CNTN') { if (!is_array($val['reportValue'])) { $ppin = $val['reportValue']; } if (!is_array($val['matchValue'])) { $ppin = $val['matchValue']; } } } } } @endphp @else @endif @else @endif
CARD NO {{ $cardNumber }}
CARD STATUS {{ $status }}
DRIVER NAME {{ $driver_name }}
DRIVER ID {{ $driver_id }}
Trip# {{ $trip }}
UNIT# {{ $unit_no }}
Trailer# {{ $ppin }}
No Record Found.
No Record Found.

EFS Rejected Transactions of Last 60 days

@if (!empty($last_60_days_data)) @php $last_60_days_data = $last_60_days_data['value']; @endphp @if (!empty($last_60_days_data)) @if (is_array($last_60_days_data[0])) @foreach ($last_60_days_data as $key => $val) @endforeach() @else @endif @else @endif @else @endif
Transaction Date Card Number Invoice Loc Name Loc City Loc State Error Desc Unit
{{ trim($val['tranDate']) }} {{ trim($val['cardNum']) }} {{ trim($val['invoice']) }} {{ trim($val['locName']) }} {{ trim($val['locCity']) }} {{ trim($val['locState']) }} {{ trim($val['errorDesc']) }} {{ trim($val['unit']) }}
{{ trim($last_60_days_data['tranDate']) }} {{ trim($last_60_days_data['cardNum']) }} {{ trim($last_60_days_data['invoice']) }} {{ trim($last_60_days_data['locName']) }} {{ trim($last_60_days_data['locCity']) }} {{ trim($last_60_days_data['locState']) }} {{ trim($last_60_days_data['errorDesc']) }} {{ trim($last_60_days_data['unit']) }}
No Record Found.
No Record Found.

EFS Payroll Card History of Last 60 days

@if (!empty($last_60_days_card_history)) @php $last_60_days_card_history = $last_60_days_card_history['value']; @endphp @if (!empty($last_60_days_card_history)) @foreach ($last_60_days_card_history as $key => $row) @endforeach @else @endif @else @endif
Amount Card Number CashID Date
{{ trim($row['amount']) }} {{ trim($row['cardNumber']) }} {{ trim($row['cashId']) }} {{ trim($row['date']) }}
No Record Found.
No Record Found.
@endsection()