@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.6 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('form46.daily.index') }}">Index Form4.6</a></li>
                        <li class="breadcrumb-item active">View Form Daily 4.6</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 class="text-end">
                        <a href="{{ route('form46.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)Created At</th>
                            <td>{{ $submission->created_at->format('d M Y, h:i A') }}</td>
                        </tr>
                        <tr>
                            <th>(b) Jenis Tanaman</th>
                            <td>{{ $submission->jenis_tanaman }}</td>
                        </tr>
                        <tr>
                            <th>(c) Blok (ha)/ Lokasi</th>
                            <td>{{ $submission->Blok_Lokasi }}</td>
                        </tr>
                        <tr>
                            <th>(d-i) Jumlah Hasil (kg@unit) (i)Tuai </th>
                            <td>{{ $submission->jumlah_hasil_tuai }}</td>
                        </tr>
                        <tr>
                            <th>(d-ii) Jumlah Hasil (kg@unit) (ii)Jual</th>
                            <td>{{ $submission->jumlah_hasil_jual }}</td>
                        </tr>
                        <tr>
                            <th>(e) Harga Jualan/kg @ unit (RM)</th>
                            <td>{{ $submission->harga_jualan }}</td>
                        </tr>
                        <tr>
                            <th>(f) Jumlah Harga (RM)</th>
                            <td>{{ $submission->jumlah_harga }}</td>
                        </tr>
                        <tr>
                            <th>(g) No. Invois </th>
                            <td>{{ $submission->no_invois }}</td>
                        </tr>
                        <tr>
                            <th>(g) Nama Pembeli</th>
                            <td>{{ $submission->nama_pembeli }}</td>
                        </tr>
                        <tr>
                            <th>Nama Operator</th>
                            <td>{{ $submission->nama_operator }}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
@endsection
