@extends ('../welcome') @section('content')
Filter
{{-- search by phone number --}}
Status:
Type:
Units:
Clients:
Methods:
User:
Creation Date
From To


Call Date
From To
@if(request()->route()->getName() == 'delayTickets') Delay Tickets @else Tickets @endif
Total: {{ $tickets->total() }}
@if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('tickets-export')) @if(request()->route()->getName() == 'delayTickets') Export Delay Tickets @else Export @endif @endif @if (auth()->user()->type == 'admin' || auth()->user()->role->hasPermission('tickets-create')) @endif
user()->type == 'admin' ||auth()->user()->role->hasPermission('tickets-export')? 'example1': 'nonExport' }} class="table table-bordered table-striped"> {{-- --}} @foreach ($tickets as $ticket) @endforeach
Ticket ID Ticket Status Client Name Phone Ticket Type Related Item Ticket Source Note Call Date Ticket Creation DateTicket last Action Ticket Action DateCreated By Assigned User Show
{{ $ticket->id ?? '' }} {{ $ticket->status ?? '' }} @if ($ticket->client) {{ $ticket->client?->name ?? '' }} @else {{ $ticket->client?->name ?? '' }} @endif @if (!empty($ticket->client->phone_numbers)) @foreach ($ticket->client->phone_numbers as $phone) {{ $phone->country->phonecode }} {{ $phone->phone }}
@endforeach @endif
{{ $ticket->ticket_type?->name ?? '' }} @if ($ticket->unit) {{ $ticket->unit?->name ?? '' }} @else {{ $ticket->unit?->name ?? '' }} @endif {{ $ticket->method?->name ?? '' }} {{ $ticket->description ?? '' }} {{ Carbon\Carbon::parse($ticket->call_date)->format('Y-m-d') ?? '' }} {{ $ticket->created_at ?? '' }} @if ($ticket->ticket_created_by) {{ $ticket->ticket_created_by?->name }} @else {{ $ticket->ticket_created_by?->name ?? '' }} @endif @if ($ticket->assigned_to) {{ $ticket->assigned_to?->name ?? '' }} @else {{ $ticket->assigned_to?->name ?? '' }} @endif @if (auth()->user()->type == 'admin' || Auth::user()->role->hasPermission('tickets-show')) Show @endif
@endsection