- Added buttons for assigning diagnosis and starting diagnosis based on job card status in the job card view. - Implemented a modal for assigning technicians for diagnosis, including form validation and technician selection. - Updated routes to include a test route for job cards. - Created a new Blade view for testing inspection inputs. - Developed comprehensive feature tests for the estimate module, including creation, viewing, editing, and validation of estimates. - Added tests for estimate model relationships and statistics calculations. - Introduced a basic feature test for job cards index.
23 lines
523 B
PHP
23 lines
523 B
PHP
<?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']);
|
|
}
|
|
}
|