@extends('user.layouts')
@section('title', 'Help Request')
@section('header')
@endsection
@section('content')
@php
$userName =
optional($help->user)->name
?? 'N/A';
$initial =
$userName !== 'N/A'
? strtoupper(
substr(
trim($userName),
0,
1
)
)
: 'U';
@endphp
{{-- HEADER --}}
{{-- DETAIL CARD --}}
{{-- USER HEADER --}}
{{-- DETAILS --}}
{{-- USER ID --}}
User ID
{{ $help->user_id ?? 'N/A' }}
{{-- AGENT ID --}}
Agent ID
{{ optional($help->user)->agent_code ?? 'N/A' }}
{{-- CREATED DATE --}}
Created Date
@if($help->created_at)
{{ $help->created_at->format('d-m-Y') }}
@else
N/A
@endif
{{-- CREATED TIME --}}
Created Time
@if($help->created_at)
{{ $help->created_at->format('h:i A') }}
@else
N/A
@endif
{{-- SUBJECT --}}
Subject
{{ $help->subject ?? 'N/A' }}
{{-- MESSAGE --}}
Message
{{ $help->content ?? 'N/A' }}
@endsection