@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.4 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('form44.daily.index') }}">Index Form4.4</a></li>
                        <li class="breadcrumb-item active">View Form Daily 4.4</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) Cara Pengawasan</th>
                            <td>{{ $submission->cara_pengawasan }}</td>
                        </tr>
                        <tr>
                            <th>(c) Lokasi / Blok</th>
                            <td>{{ $submission->lokasi_blok }}</td>
                        </tr>
                        <tr>
                            <th>(d) Nama Perosak</th>
                            <td>{{ $submission->nama_perosak }}</td>
                        </tr>
                        <tr>
                            <th>(e) Bil. Perosak/ Peratus Kerosakan</th>
                            <td>{{ $submission->bil_perosak_peratusan_kerosakan }}</td>
                        </tr>
                        <tr>
                            <th>(e-4) Penggunaan: Cara Aplikasi</th>
                            <td>{{ $submission->penggunaan_caraAplikasi }}</td>
                        </tr>
                        <tr>
                            <th>(f) Kaedah Kawalan</th>
                            <td>{{ $submission->kaedah_kawalan }}</td>
                        </tr>
                        <tr>
                            <th>Nama Operator</th>
                            <td>{{ $submission->nama_operator }}</td>
                        </tr>
                    </table>
                </div>

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