@extends('pos.layout') @section('title', 'Token ' . $token->token) @section('receipt')
{{ $company_info->name ?? '' }}
@if (!empty($company_info->mobile))
{{ $company_info->mobile }}
@endif

SUPPORT TOKEN
#{{ $token->token }}

@if (!empty($token->description)) @endif
Created {{ $token->created_at ? $token->created_at->format('d-m-Y h:i A') : '' }}
Category {{ $token->category->tokenCategory ?? '' }}
Problem {{ $token->Code->tokenCode ?? '' }}
Details {{ $token->description }}

@php $info = $token->clients->clientsinfo ?? null; $address = $info ? collect([$info->flat_no, $info->building_name, $info->road_no, $info->block_sector, $info->area]) ->filter() ->implode(', ') : ''; @endphp @if ($address !== '') @endif @if (!empty($token->clients->pop->popname)) @endif
CID {{ $token->clientId }}
User ID {{ $token->clients->userid ?? '' }}
Name {{ $token->clients->clientsinfo->clients_name ?? '' }}
Contact {{ $token->reporterContact ?: $token->clients->clientsinfo->contact_no ?? '' }}
Address {{ $address }}
POP {{ $token->clients->pop->popname }}

Assigned To @forelse ($token->assignUsers as $assignUser) {{ $assignUser->employee->name ?? '' }}
@empty {{ $token->employees->name ?? 'Not assigned' }} @endforelse
Created By {{ $token->creator->name ?? $token->createByClient ?? '' }}

Printed {{ now()->format('d-m-Y h:i A') }}
@endsection