

<?php $__env->startSection('content'); ?>
<section class="content-header">
    <div class="container-fluid">
        <div class="row mb-3">
            <div class="col-sm-6">
                <h1>List of Farm Records </h1>
            </div>
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Home</a></li>
                    <li class="breadcrumb-item active">Forms 4.6</li>
                </ol>
            </div>
        </div>
    </div>
</section>

<section class="content">
    <div class="container-fluid">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title">Forms 4.6</h3>
            </div>

            <div class="card-body">
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>No</th>
                            <th>Farm Section</th>
                            <th>(a)Date</th>
                            <th>(b)Jenis Tanaman</th>
                            <th>(c)Blok (ha)/ Lokasi</th>
                            <th>(d-i)Jumlah Hasil (kg@unit) (i)Tuai </th>
                            <th>(d-ii)Jumlah Hasil (kg@unit) (ii)Jual</th>
                            <th>(e)Harga Jualan/kg  @ unit (RM)</th>
                            <th>(f)Jumlah Harga (RM)</th>
                            <th>(g)No. Invois </th>
                            <th>(h)Nama Pembeli</th>
                            <th>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>
                                <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->jenis_tanaman); ?></td>
                                <td><?php echo e($submission->Blok_Lokasi); ?></td>
                                <td><?php echo e($submission->jumlah_hasil_tuai); ?></td>
                                <td><?php echo e($submission->jumlah_hasil_jual); ?></td>
                                <td><?php echo e($submission->harga_jualan); ?></td>
                                <td><?php echo e($submission->jumlah_harga); ?></td>
                                <td><?php echo e($submission->no_invois); ?></td>
                                <td><?php echo e($submission->nama_pembeli); ?></td>
                                <td><?php echo e($submission->nama_operator); ?></td>
                                <td>
                                    <!-- Add any actions you need here, e.g., View, Edit, Delete -->
                                    <a href="<?php echo e(route('form46.daily.show', $submission->id)); ?>" class="btn btn-primary btn-sm">View</a>
                                    <a href="<?php echo e(route('form46.daily.edit', $submission->id)); ?>" class="btn btn-warning btn-sm">Edit</a>
                                    <form action="<?php echo e(route('form46.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>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>

            <div class="card-footer">
                <a href="<?php echo e(route('form46.daily.create')); ?>" class="btn btn-success">Create New Entry</a>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

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