@extends('layout.app') @section('content')
{{-- --}} @foreach ($token as $r) {{-- --}} {{-- --}} @endforeach
ID Token# Date Category Code Description Source Creator Customer IDUserNameCustomer Manager Address Reporter Contact 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 }} @if ($r->token_source == 'CRM') {{ $r->token_source }} @else {{ $r->token_source }} @endif {{ $r->creator->name ?? '' }} @if ($r->createByClient) {{ $r->createByClient ?? '' }} @endif {{ $r->clientId }}
{{ $r->clients->userid ?? '' }}
{{ $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->employees->name ?? '' }} @can('delete-token')
@method('DELETE') @csrf
@endcan
@endsection @section('ajax') @endsection