25 lines
995 B
PHP
25 lines
995 B
PHP
@extends('layouts.admin')
|
|
|
|
@section('title', 'Edit Kendaraan | Admin Rental')
|
|
@section('page_title', 'Edit Kendaraan')
|
|
|
|
@section('content')
|
|
@if (session('error'))
|
|
<div style="margin-bottom:16px; padding:12px 14px; background:#fef2f2; border:1px solid #fecaca; color:#991b1b; border-radius:10px;">
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
|
|
<div style="margin-bottom:18px;">
|
|
<a href="{{ route('admin-rental.vehicles.index') }}" style="color:#2563eb; text-decoration:none; font-weight:600;">← Kembali ke Data Kendaraan</a>
|
|
</div>
|
|
|
|
<div style="background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:20px;">
|
|
<form method="POST" action="{{ route('admin-rental.vehicles.update', $vehicle) }}" enctype="multipart/form-data">
|
|
@csrf
|
|
@method('PUT')
|
|
@include('admin-rental.vehicles.form', ['vehicle' => $vehicle, 'submitLabel' => 'Update Kendaraan'])
|
|
</form>
|
|
</div>
|
|
@endsection
|