@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('form43.daily.index') }}">Index Form4.3</a></li>
                        <li class="breadcrumb-item active" aria-current="page">
                            View Form Daily 4.3
                        </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>Created At</th>
                            <td>{{ $submission->created_at->format('d M Y, h:i A') }}</td>
                        </tr>
                        <tr>
                            <th>(a) Tarikh Beli/ Guna</th>
                            <td>{{ $submission->tarikh_beli_guna->format('d M Y, h:i A') }}</td>
                        </tr>
                        <tr>
                            <th>(b) Jenis Bahan</th>
                            <td>{{ $submission->jenis_bahan }}</td>
                        </tr>
                        <tr>
                            <th>(c) Formulasi</th>
                            <td>{{ $submission->formulasi }}</td>
                        </tr>
                        <tr>
                            <th>(d-1) Pembelian: Kuantiti</th>
                            <td>{{ $submission->pembelian_kuantiti }}</td>
                        </tr>
                        <tr>
                            <th>(d-2) Pembelian: Harga (RM)</th>
                            <td>{{ $submission->pembelian_harga }}</td>
                        </tr>
                        <tr>
                            <th>(d-3) Pembelian: Name Pembekal</th>
                            <td>{{ $submission->pembelian_nama_pembekal }}</td>
                        </tr>
                        <tr>
                            <th>(e-1) Penggunaan: Kuantiti</th>
                            <td>{{ $submission->penggunaan_kuantiti }}</td>
                        </tr>
                        <tr>
                            <th>(e-2) Penggunaan: Cara Aplikasi</th>
                            <td>{{ $submission->penggunaan_caraAplikasi }}</td>
                        </tr>
                        <tr>
                            <th>(e-3) Penggunaan: Lokasi/Blok</th>
                            <td>{{ $submission->penggunaan_lokasi }}</td>
                        </tr>
                        <tr>
                            <th>(e-3) Penggunaan: Keluasan (ha)</th>
                            <td>{{ $submission->penggunaan_keluasan }}</td>
                        </tr>
                        <tr>
                            <th>Nama Operator</th>
                            <td>{{ $submission->nama_operator }}</td>
                        </tr>
                    </table>
                </div>

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