@extends('admin.layout') @section('content')

{{ trans('3 CX User Report') }}

{{ trans('3 CX User Report') }}

@if (count($errors) > 0) @if($errors->any()) @endif @endif
@foreach ($reportData as $data) @php $gapInSeconds = strtotime($data['gap']) ? strtotime($data['gap']) - strtotime('00:00:00') : 0; $bgColor = 'white'; // Default color if ($gapInSeconds < 360 && $gapInSeconds > 0) { $bgColor = 'yellow'; } elseif ($gapInSeconds >= 360 && $gapInSeconds <= 3600) { $bgColor = '#FFD700'; } elseif ($gapInSeconds >= 3600) { $bgColor = '#d1b061'; } if (!empty($dnUser[$data['dnowner']]) ) { $callerId = $dnUser[$data['dnowner']]['first_name'] . ' ' . $dnUser[$data['dnowner']]['last_name']; $destination = $data['party_name']; }else{ $callerId = $data['party_name']; $destination = ''; } @endphp @endforeach
Date Time Caller ID Destination Status Ringing Talk Time End Time Gap
{{ $data['date'] }} {{ $data['time'] }} {{ $callerId ?? ''}} {{ $destination ?? '' }} {{ $data['status'] }} {{ $data['ring'] }} {{ $data['talk_time'] }} {{ $data['end_time'] }} {{ $data['gap'] }}
@endsection