@extends('layouts.app')

@section('content')
    <!--begin::App Content Header-->
    <div class="app-content-header"> <!--begin::Container-->
        <div class="container-fluid">
            <!--begin::Row-->
            <div class="row">
                <div class="col-sm-6">
                    <h3 class="mb-0">Submitted Form Daily 4.5 Details</h3>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-end">
                        <li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">Home</a></li>
                        <li class="breadcrumb-item"><a href="{{ route('form45.daily.index') }}">Index Form4.5</a></li>
                        <li class="breadcrumb-item active">View Form Daily 4.5</li>
                    </ol>
                </div>
            </div>
            <!--end::Row-->
        </div> <!--end::Container-->
    </div>
    <!--end::App Content Header-->

    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Details of Submission ID: {{ $submission->id }}</h3>
                </div>

                <div class="card-body">
                    <table class="table table-bordered">
                        <tr>
                            <th>Farm Section</th>
                            <td>{{ $submission->farmSection->name ?? 'N/A' }}</td>
                        </tr>
                        <tr>
                            <th>(a) Created At</th>
                            <td>{{ $submission->created_at->format('d M Y, h:i A') }}</td>
                        </tr>
                        <tr>
                            <th>(b) Tanaman</th>
                            <td>{{ $submission->tanaman }}</td>
                        </tr>
                        <tr>
                            <th>(c) Lokasi & Keluasan (ha)</th>
                            <td>{{ $submission->lokasi_keluasan }}</td>
                        </tr>
                        <tr>
                            <th>(d) Nama Dagangan & Bahan Aktif</th>
                            <td>{{ $submission->nama_dagangan_bahan_aktif }}</td>
                        </tr>
                        <tr>
                            <th>(e) No. LRMP</th>
                            <td>{{ $submission->no_LRMP }}</td>
                        </tr>
                        <tr>
                            <th>(e-4) Harga</th>
                            <td>{{ $submission->harga }}</td>
                        </tr>
                        <tr>
                            <th>(f) Kuantiti Pembelian/ Kadar Penggunaan</th>
                            <td>{{ $submission->kuantiti_pembelian_kadar_penggunaan }}</td>
                        </tr>
                        <tr>
                            <th>(f) Justifikasi Penggunaan</th>
                            <td>{{ $submission->Justifikasi_penggunaan }}</td>
                        </tr>
                        <tr>
                            <th>(f) Alat Yang Digunakan</th>
                            <td>{{ $submission->alat_digunakan }}</td>
                        </tr>
                        <tr>
                            <th>(f) PHI (Hari)</th>
                            <td>{{ $submission->PHI_hari }}</td>
                        </tr>
                        <tr>
                            <th>(f) REI (Hari)</th>
                            <td>{{ $submission->REI_hari }}</td>
                        </tr>
                        <tr>
                            <th>Nama Operator</th>
                            <td>{{ $submission->nama_operator }}</td>
                        </tr>
                    </table>
                </div>

                <div class="card-footer">
                    <a href="{{ route('form45.daily.index') }}" class="btn btn-secondary">Back to List</a>
                </div>
            </div>
        </div>
    </div>
@endsection
