@extends('layout.app') @section('content')
@foreach ($token as $r) {{-- --}} @endforeach
ID Token# Date Category Code Description Customer ID UserName Customer Manager Address Reporter Contact Creator Creator(Client) Assigned Action
{{ $r->id }} T.ID : {{ $r->token }}
C.T : {{ date('d-M-Y g:i: a ', strtotime($r->created_at)) }}
@if ($r->assign_time) A.T : {{ date('d-M-Y g:i: a ', strtotime($r->assign_time)) }}
@if ($r->close_time) C.T : {{ date('d-M-Y g:i: a ', strtotime($r->close_time)) }}
@else {{ $r->close_time ? 'Closed' . dateTimeDifferent(now(), $r->assign_time) : 'Token Assigned ' . dateTimeDifferent(now(), $r->assign_time)." ago Not Closed" }}
@endif @else {{ $r->assign_time ? 'Assigned' . dateTimeDifferent(now(), $r->created_at) : 'Token Created ' . dateTimeDifferent(now(), $r->created_at)." ago Not assigned" }}
@endif
{{ $r->token }}{{ date('d-M-Y g:i: a ', strtotime($r->created_at)) }} {{ $r->category->tokenCategory ?? '' }} {{ $r->Code->tokenCode ?? '' }} {{ $r->description }} {{ $r->clientId }} {{ $r->clients->userid ?? '' }} {{ $r->clients->clientsInfo->clients_name ?? '' }} {{ $r->clients->pops->reseller->name ?? '' }}

@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->reportedBy }} {{ $r->reporterContact }} {{ $r->creator->name ?? '' }} {{ $r->createByClient ?? '' }} {{ $r->employees->name ?? '' }} @can('delete-token')
@method('DELETE') @csrf
@endcan
@endsection @section('ajax') @endsection