@extends('user.layouts') @section('title', 'Help Center') @section('header') @endsection @section('content')
{{-- ========================================================= HEADER ========================================================== --}}

Help Center {{ $helpcentre->count() }}

Read Help Center
@foreach($helpcentre as $item) @php $receivedAt = $item->created_at ? $item->created_at->copy()->timezone('Asia/Kolkata') : null; @endphp @endforeach
S.NO USER DETAILS AGENT ID SUBJECT CONTENT DATE & TIME ACTION
{{ $loop->iteration }}
{{ optional($item->user)->name ?? 'N/A' }}
User ID: {{ $item->user_id }}
{{ optional($item->user)->agent_code ?? 'N/A' }} {{ $item->subject ?? 'N/A' }}
{{ \Illuminate\Support\Str::limit($item->content, 70) }}
@if($receivedAt)
{{ $receivedAt->format('d-m-Y') }}
{{ $receivedAt->format('h:i A') }}
@else N/A @endif
{{-- ========================================================= READ MODAL ========================================================= --}} @endsection @section('footer') @endsection