@extends('layouts.app', ['title' => __('Ticket Management')]) @section('content')
| {{ __('SL') }} | {{ __('Restaurant ID') }} | {{ __('Restaurant Name') }} | {{ __('Restaurant Email') }} | {{ __('Phone Number') }} | {{ __('Mobile Number') }} | {{ __('Subject') }} | {{ __('Status') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|
| {{ __('No tickets found.') }} | ||||||||
| {{ $key + 1 }} | {{ $ticket->restaurant->id }} | {{ $ticket->restaurant->name }} | {{ $ticket->restaurant->user->email }} | @php $phone = preg_replace('/\D/', '', $ticket->restaurant->phone); // remove non-digits if (strlen($phone) === 10) { $phone = '(' . substr($phone, 0, 3) . ')' . substr($phone, 3, 3) . '-' . substr($phone, 6); } @endphp {{ $phone }} | @php $phone = preg_replace('/\D/', '', $ticket->restaurant->user->phone); // remove non-digits if (strlen($phone) === 10) { $phone = '(' . substr($phone, 0, 3) . ')' . substr($phone, 3, 3) . '-' . substr($phone, 6); } @endphp {{ $phone }} | {{ $ticket->subject }} | {{ $ticket->status }} | {{ __('View') }} |