@extends('admin.layout') @section('content')

Customer Support Tickets

@can('create-ticket') Add New Ticket @endcan

@foreach($ticket as $item) @php if($item->status == 'Closed') $status = 'bg-light'; elseif($item->status == 'Open') $status = 'bg-primary'; elseif($item->status == 'Answered') $status = 'bg-success'; @endphp @endforeach
ID# Site/Account name Subject Requester name Department Category Sub Category Sub Category Item Last Response Priority Create Date Assigned Status Actions
{{ $item->id }} {{ $item->site_name ?? '' }} {{ $item->subject }} {{ $item->first_name }} {{ $item->last_name }} @if(!empty($item->email)) @endif @if(!empty($item->phone)) @endif {{ $item->department_info->title ?? '' }} {{ $item->service->title ?? '' }} {{ $item->sub_catategory->title ?? '' }} {{ $item->sub_cat_item->item_name ?? '' }} {!! date($date_format, strtotime($item->updated_at.' '.$timezone)) !!} {{ $item->priority }} {!! date($date_format, strtotime($item->created_at.' '.$timezone)) !!} @can('assign-ticket') @else {{ $item->assigned->name ?? 'Not Assigned' }} @endcan
{{ $item->status }}
@can('view-ticket') @endcan {{-- --}} {{--
{{ method_field('DELETE') }} {{ csrf_field() }}
--}}
{!! $ticket->appends(['search' => Request::get('search')])->render() !!}
@endsection