@php use Carbon\Carbon; @endphp @extends('layouts.back-end.app') @section('title', translate('support_Ticket')) @section('content')

{{translate('support_ticket')}} {{ $tickets->total() }}

@php($priority=request()->has('priority')?request()->input('priority'):'') @php($status=request()->has('status')?request()->input('status'):'')
@foreach($tickets as $key =>$ticket)
@if($ticket->customer)
{{$ticket->customer->f_name??""}} {{$ticket->customer->l_name??""}}
{{$ticket->customer->email??""}}
{{translate(str_replace('_',' ',$ticket->priority))}} {{translate(str_replace('_',' ',$ticket->status))}}
{{translate(str_replace('_',' ',$ticket->type))}}
@if ($ticket->created_at->diffInDays(Carbon::now()) < 7) {{ date('D h:i:A',strtotime($ticket->created_at)) }} @else {{ date('d M Y h:i:A',strtotime($ticket->created_at)) }} @endif
@else
{{ translate('customer_not_found').'!' }}
@endif
@csrf
{{$ticket->description}}
@endforeach
{{$tickets->links()}}
@if(count($tickets)==0) @include('layouts.back-end._empty-state',['text'=>'no_support_ticket_found'],['image'=>'default']) @endif
@endsection @push('script') @endpush