@extends('layouts.employee')

@section('content')

<div class="container">

    <h2 class="mb-4">Kembalikan Kendaraan</h2>

    <div class="card">
        <div class="card-body">

            <form action="{{ route('returns.store', $vehicleRequest->id) }}"
                method="POST"
                enctype="multipart/form-data">

                @csrf

                <label>Jumlah BBM Digunakan (Liter)</label>
                    <input
                    type="number"
                    step="0.1"
                    name="fuel_used"
                    class="form-control"
                    required>

                <div class="mb-3">
                    <label class="form-label">
                        Harga Bahan Bakar
                    </label>

                    <input type="number"
                        step="0.01"
                        name="fuel_cost"
                        class="form-control">
                </div>

                <div class="mb-3">
                    <label class="form-label">
                        Upload butkti Pembayaran
                    </label>

                    <input type="file"
                        name="fuel_receipt"
                        class="form-control">
                </div>

                <div class="mb-3">
                    <label class="form-label">
                        Upload Foto bukti pengembalian
                    </label>

                    <input type="file"
                        name="return_photo"
                        class="form-control">
                </div>

                <div class="mb-3">
                    <label class="form-label">
                        Notes
                    </label>

                    <textarea name="notes"
                            class="form-control"
                            rows="4"></textarea>
                </div>

                <button type="submit"
                        class="btn btn-primary">

                    Submit Pengembalian

                </button>

            </form>

        </div>
    </div>

</div>

@endsection