@extends('admin.layout') @section('content')
{{ __('Support Tickets') }}
@if (session()->has('course_status_warning'))

{{ session()->get('course_status_warning') }}

@endif @if (count($collection) == 0)

{{ __('NO SUPPORT TICKETS FOUND ') . '!' }}

@else
@foreach ($collection as $item) @endforeach
{{ __('Ticket ID') }} {{ __('User Type') }} {{ __('Username') }} {{ __('Email') }} {{ __('Subject') }} {{ __('Status') }} {{ __('Assigned Staff') }} {{ __('Action') }}
{{ $item->id }} @if ($item->user_type == 'vendor') {{ __('Vendor') }} @else {{ __('Customer') }} @endif @if ($item->user_type == 'vendor') @if ($item->vendor) {{ $item->vendor->username }} @else {{ '-' }} @endif @else {{ @$item->user->username }} @endif {{ $item->email != '' ? $item->email : '-' }} {{ $item->subject }} @if ($item->status == 1) {{ __('Pending') }} @elseif($item->status == 2) {{ __('Open') }} @elseif($item->status == 3) {{ __('Closed') }} @endif @if (!empty($item->admin_id)) {{ @$item->admin->username }} @else {{ '-' }} @endif
@endif
@foreach ($collection as $item) @endforeach @endsection