<?php

namespace App\Http\Controllers\INSURANCE;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\INSURANCE\Insurer;
use App\Models\INSURANCE\Contact;
use App\Http\Requests\ContactStoreRequest;
use App\Http\Requests\ContactUpdateRequest;

class ContactController extends Controller
{
    // public function index(Insurer $insurer)
    // {
    //     $contacts = $insurer->contacts()->get();
    //     return view('insurers.contacts.index', compact('insurer', 'contacts'));
    // }

    // public function create(Insurer $insurer)
    // {
    //     return view('insurers.contacts.create', compact('insurer'));
    // }

    // public function store(ContactStoreRequest $request, Insurer $insurer)
    // {
    //     $insurer->contacts()->create($request->validated());
    //     return redirect()->route('insurers.contacts.index', $insurer);
    // }

    // public function show(Insurer $insurer, Contact $contact)
    // {
    //     return view('insurers.contacts.show', compact('insurer', 'contact'));
    // }

    // public function edit(Insurer $insurer, Contact $contact)
    // {
    //     return view('insurers.contacts.edit', compact('insurer', 'contact'));
    // }

    // public function update(ContactUpdateRequest $request, Insurer $insurer, Contact $contact)
    // {
    //     $contact->update($request->validated());
    //     return redirect()->route('insurers.contacts.show', [$insurer, $contact]);
    // }

    // public function destroy(Insurer $insurer, Contact $contact)
    // {
    //     $contact->delete();
    //     return redirect()->route('insurers.contacts.index', $insurer);
    // }
}