@foreach ($tickets as $ticket) @if ($type == 'course' && isset($userType) && $userType == 'student') @else @endif @endforeach
{{ isset($userType) && $userType == 'student' && $type == 'course' ? translate('Contact') : translate('Ticket Id') }} {{ translate('Title') }} {{ translate('Ticket Date') }} {{ translate('Ticket Status') }} {{ translate('Action') }}
@if (isset($ticket?->courseSupport?->course)) @foreach ($ticket?->courseSupport?->course?->instructors as $instructor) @php $user = $instructor?->userable ?? null; $profileImg = $user->profile_img && fileExists('lms/instructors', $user?->profile_img) == true ? asset("storage/lms/instructors/{$user->profile_img}") : asset('lms/assets/images/placeholder/profile.jpg'); $userTranslations = parse_translation($user); @endphp
instructor
{{ $userTranslations['first_name'] ?? ($user?->first_name ?? '') }} {{ $userTranslations['last_name'] ?? ($user?->last_name ?? '') }}
@endforeach @endif
#{{ $ticket->ticket_code }}
{{ $ticket->title }}
{{ customDateFormate($ticket->updated_at, $format = 'y M d') }} @switch($ticket->status) @case('pending') {{ translate($ticket->status) }} @break @case('active') {{ translate($ticket->status) }} @break @case('close') {{ translate($ticket->status) }} @break @endswitch