@extends('backend.layouts.app') @section('content')
Inquiries and Contacts
@foreach ($combinedData as $item) @endforeach
Category Name Contact Number Email Message Sent Action
@if($item instanceof \App\Models\Inquiry) {{ $item->category }} @else N/A @endif @if($item instanceof \App\Models\Inquiry) {{ $item->fullname }} @else {{ $item->firstname . ' ' . $item->lastname }} @endif @if($item instanceof \App\Models\Inquiry) {{ $item->phonenumber }} @else {{ $item->phone_number }} @endif {{ $item->email }} {{ $item->message }} {{ date('F j, Y', strtotime($item->created_at)) }}
@csrf @method('DELETE')
@endsection