LAR_Maintenance/app/Http/Controllers/MaintenanceController.php

35 lines
837 B
PHP
Raw Normal View History

2024-07-30 16:13:21 +00:00
<?php
namespace App\Http\Controllers;
2024-07-31 16:45:14 +00:00
use App\Models\MaintenanceHistory;
2024-08-07 05:52:07 +00:00
use Illuminate\Http\Request;
2024-07-31 16:45:14 +00:00
2024-07-30 16:13:21 +00:00
class MaintenanceController extends BaseController
{
public function index()
{
return view('maintenance.index');
}
2024-07-31 15:04:33 +00:00
public function planned()
{
return view('maintenance.planned');
}
2024-07-31 16:45:14 +00:00
public function plannedDetail(MaintenanceHistory $maintenance_history)
{
return view('maintenance.planned-detail', [
'maintenance_history' => $maintenance_history,
]);
}
2024-08-07 05:52:07 +00:00
public function plannedDetailPut(Request $request, MaintenanceHistory $maintenance_history)
{
return view('maintenance.planned-detail-done', [
'maintenance_history' => $maintenance_history,
'maintenance_state' => $request->input('test'),
]);
}
2024-07-30 16:13:21 +00:00
}