<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\ContactSubmission;

class ContactController extends Controller
{
    public function index()
    {
        $submissions = ContactSubmission::latest()->paginate(20);
        return view('admin.contacts.index', compact('submissions'));
    }

    public function show(ContactSubmission $contact)
    {
        return view('admin.contacts.show', compact('contact'));
    }
}
