

<?php $__env->startSection('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">List of Farm Records</h3>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-end">
                        <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Home</a></li>
                        <li class="breadcrumb-item active">Forms 4.1</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">Forms 4.1</h3>
                    <div class="text-end">
                        <a href="<?php echo e(route('form41.daily.create')); ?>" class="btn btn-success">Create New Entry</a>
                    </div>
                </div>

                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered">
                            <thead>
                                <tr class="text-center" style="vertical-align: middle";>
                                    <th>No</th>
                                    <th>Farm Section</th>
                                    <th>(a) Date</th>
                                    <th>(b) Masalah Tanah/ Substrat</th>
                                    <th>(c) Kaedah Pemuliharaan/ Rawatan</th>
                                    <th>(d) Nama Bahan/ Peralatan</th>
                                    <th>(e) Kuantiti Bahan/ Peralatan</th>
                                    <th>(f) Tempoh Dilarang Menanam</th>
                                    <th>(g) Blok/ Lokasi</th>
                                    <th>(h) Nama Operator</th>
                                    <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $submissions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $submission): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr class="text-center">
                                        <td><?php echo e($loop->iteration); ?></td>
                                        <td><?php echo e($submission->farmSection->name ?? 'N/A'); ?></td>
                                        <td><?php echo e($submission->created_at->format('d M Y, h:i A')); ?></td>
                                        <td><?php echo e($submission->masalah_tanah_substrat); ?></td>
                                        <td><?php echo e($submission->kaedah_pemulihan_rawatan); ?></td>
                                        <td><?php echo e($submission->nama_bahan_peralatan); ?></td>
                                        <td><?php echo e($submission->kuantiti_bahan_peralatan); ?></td>
                                        <td><?php echo e($submission->tempoh_dilarang_menanam ?? 'N/A'); ?></td>
                                        <td><?php echo e($submission->blok_lokasi); ?></td>
                                        <td><?php echo e($submission->nama_operator); ?></td>
                                        <td>
                                            <div  class="text-center" class="btn-group">
                                                <a href="<?php echo e(route('form41.daily.show', $submission->id)); ?>"
                                                    class="btn btn-primary btn-sm">View</a>
                                                <a href="<?php echo e(route('form41.daily.edit', $submission->id)); ?>"
                                                    class="btn btn-warning btn-sm">Edit</a>
                                                <form action="<?php echo e(route('form41.daily.destroy', $submission->id)); ?>"
                                                    method="POST" style="display:inline-block;">
                                                    <?php echo csrf_field(); ?>
                                                    <?php echo method_field('DELETE'); ?>
                                                    <button type="submit" class="btn btn-danger btn-sm"
                                                        onclick="return confirm('Are you sure?')">Delete</button>
                                                </form>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>


            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\FMIS_fypsystem\resources\views/form/form_41/index41.blade.php ENDPATH**/ ?>