<?php

namespace App\Livewire\Inspections;

use App\Models\VehicleInspection;
use Livewire\Component;

class Show extends Component
{
    public VehicleInspection $inspection;

    public function mount(VehicleInspection $inspection)
    {
        $this->inspection = $inspection->load(['jobCard.customer', 'jobCard.vehicle', 'inspector']);
    }

    public function render()
    {
        return view('livewire.inspections.show')
            ->layout('components.layouts.app', ['title' => 'Inspection Details']);
    }
}
