@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.2 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('form42.daily.index') }}">Index Form4.2</a></li>
                        <li class="breadcrumb-item active">View Form Daily 4.2</li>
                    </ol>
                </div>
            </div>
        </div>
        <!--end::Row-->
    </div> <!--end::Container-->
    </div>
    <!--end::App Content Header-->

    <section class="content">
        <div class="container-fluid">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Details of Submission ID: {{ $submission->id }}</h3>
                    <div class="text-end">
                        <a href="{{ route('form42.daily.index') }}" class="btn btn-secondary">Back to List</a>
                    </div>
                </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) Tarikh</th>
                            <td>{{ $submission->created_at->format('d M Y, h:i A') }}</td>
                        </tr>
                        <tr>
                            <th>(b) Jenis Varieti/ Pokok Induk/ Bahan Tanaman</th>
                            <td>{{ $submission->JenisVarieti_PokokInduk_BahanTanaman }}</td>
                        </tr>
                        <tr>
                            <th>(c) Pembelian Kuantiti</th>
                            <td>{{ $submission->pembelian_kuantiti }}</td>
                        </tr>
                        <tr>
                            <th>(d) Pembelian Harga/Unit</th>
                            <td>{{ $submission->pembelian_hargaUnit }}</td>
                        </tr>
                        <tr>
                            <th>(e) Kuantiti Bahan/ Peralatan</th>
                            <td>{{ $submission->penggunaan_kuantiti }}</td>
                        </tr>
                        <tr>
                            <th>(f) Penggunaan Blok/ Luas (Ha)</th>
                            <td>{{ $submission->penggunaan_blok }}</td>
                        </tr>
                        <tr>
                            <th>(g) Rawatan Bahan Tanaman: Justifikasi</th>
                            <td>{{ $submission->rawatanBahanTanaman_Justifikasi }}</td>
                        </tr>
                        <tr>
                            <th>(g) Rawatan Bahan Tanaman: Bahan</th>
                            <td>{{ $submission->rawatanBahanTanaman_Bahan }}</td>
                        </tr>
                        <tr>
                            <th>(g) Rawatan Bahan Tanaman: Kadar</th>
                            <td>{{ $submission->rawatanBahanTanaman_Kadar }}</td>
                        </tr>
                        <tr>
                            <th>(h) Nama Operator</th>
                            <td>{{ $submission->nama_operator }}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    @endsection
