@extends('Customer.customer-layout') @section('body') @include('Customer.left-menu')

Pending Token

Pending Token List
@foreach ($token as $r) {{-- --}} @endforeach
ID Token# Category(Code) Description Customer Info Contact Creator Assigned
{{ $r->id }} {{$r->assign_time ? "Assign time" .round(abs(strtotime($r->assign_time) - strtotime($r->created_at)) / 60,2). " m" :"Assign Pendin Time".round(abs(strtotime(now()) - strtotime($r->created_at)) / 60,2) ."m" }} T.ID : {{ $r->token }}
Create Time : {{ date('d-M-Y g:i: a ', strtotime($r->created_at)) }}
@if ($r->status == "Active") Pending @else Closed @endif
{{ $r->category->tokenCategory ?? '' }} ({{ $r->Code->tokenCode ?? '' }}) {{ $r->description }}

@if (!empty($r->clients->clientsInfo->clients_name)) C Name : {{ $r->clients->clientsInfo->clients_name ?? '' }}
@endif @if (!empty($r->clients->clientsinfo->flat_no)) Flat No: {{ $r->clients->clientsinfo->flat_no ?? '' }}, @endif @if (!empty($r->clients->clientsinfo->building_name)) Building Name: {{ $r->clients->clientsinfo->building_name ?? '' }},
@endif @if (!empty($r->clients->clientsinfo->road_no)) Road No: {{ $r->clients->clientsinfo->road_no ?? '' }},
@endif @if (!empty($r->clients->clientsinfo->block_sector)) Block/Sector: {{ $r->clients->clientsinfo->block_sector ?? '' }}, @endif @if (!empty($r->clients->clientsinfo->area)) Area : {{ $r->clients->clientsinfo->area ?? '' }},
@endif @if (!empty($r->clients->clientsinfo->box)) Box : {{ $r->clients->clientsinfo->box ?? '' }} @endif

{{ $r->reporterContact }} {{ $r->creator->name ?? '' }} {{ $r->createByClient ?? ''}} {{ $r->employees->name ?? '' }}
@endsection