LAR_Maintenance/app/Http/Controllers/MaintenanceController.php
2024-08-07 07:52:07 +02:00

35 lines
837 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\MaintenanceHistory;
use Illuminate\Http\Request;
class MaintenanceController extends BaseController
{
public function index()
{
return view('maintenance.index');
}
public function planned()
{
return view('maintenance.planned');
}
public function plannedDetail(MaintenanceHistory $maintenance_history)
{
return view('maintenance.planned-detail', [
'maintenance_history' => $maintenance_history,
]);
}
public function plannedDetailPut(Request $request, MaintenanceHistory $maintenance_history)
{
return view('maintenance.planned-detail-done', [
'maintenance_history' => $maintenance_history,
'maintenance_state' => $request->input('test'),
]);
}
}