{{-- table loader --}}
{{__('admin.loading')}}
{{-- table loader --}} {{-- table content --}} @foreach($contacts as $contact) @endforeach
{{__('admin.date')}} {{__('admin.name_to_contact')}} {{__('admin.phone_to_contact')}} {{__('admin.type')}} {{__('admin.is_replied')}} {{__('admin.control')}}
{{\Carbon\Carbon::parse($contact->created_at)->format('d/m/Y')}} {{$contact->name ?? $contact->contactable?->name ?? '--'}} {{$contact->phone ?? $contact->contactable?->phone ?? '-'}} @php $typeColors = [ App\Enums\ContactType::TRIP_ISSUE => 'danger', App\Enums\ContactType::PAYMENT_ISSUE => 'warning', App\Enums\ContactType::DAMAGED_SCOOTER => 'danger', App\Enums\ContactType::SUGGESTION => 'info', App\Enums\ContactType::GENERAL_INQUIRY => 'primary', ]; @endphp {{ __('apis.contact_type.' . $contact->type) }} @if($contact->reply) {{__('admin.yes')}} @else {{__('admin.no')}} @endif @haspermission('admin.contacts.show') @endhaspermission @haspermission('admin.contacts.delete') @endhaspermission
{{-- table content --}} {{-- no data found div --}} @if ($contacts->count() == 0)
{{__('admin.there_are_no_matches_matching')}}
@endif {{-- no data found div --}}
{{-- pagination links div --}} @if ($contacts->count() > 0 && $contacts instanceof \Illuminate\Pagination\AbstractPaginator)
{{$contacts->links()}}
@endif