

<?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">Create Form Daily 4.4</h3>
                    <button type="button" class="btn btn-info btn-sm" data-bs-toggle="modal" data-bs-target="#infoModal">
                        <i class="fas fa-info-circle"></i>
                    </button>
                </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"><a href="<?php echo e(route('form44.daily.index')); ?>">Index Form4.4</a></li>
                        <li class="breadcrumb-item active">Create Form Daily 4.4</li>
                    </ol>
                </div>
            </div>
            <!--end::Row-->
        </div> <!--end::Container-->
    </div>
    <!--end::App Content Header-->

    <!-- Modal -->
<div class="modal fade" id="infoModal" tabindex="-1" aria-labelledby="infoModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="infoModalLabel">Panduan Mengisi Rekod myGAP 4-4</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <ul>
                    <li><strong>a. Tarikh:</strong> Tarikh masa pengawasan dijalankan.</li>
                    <li><strong>b. Cara Pengawasan:</strong> Kaedah/ cara pengawasan yang dijalankan termasuk perangkap lampu, yellow sticker/ blue sticker.</li>
                    <li><strong>c. Lokasi/ Blok:</strong> Lokasi/ blok dimana pengawasan perosak dijalankan.</li>
                    <li><strong>d. Nama Perosak:</strong> Nama perosak sama ada nama saintifik atau nama biasa seperti Spodoptera litura atau ulat ratus.</li>
                    <li><strong>e. Bilangan Perosak/ Peratus Kerosakan:</strong> Peratus atau bilangan perosak yang dikenalpasti.</li>
                    <li><strong>f. Kaedah Kawalan:</strong> Kawalan yang dijalankan untuk mengawal perosak seperti plastic silvershine, membungkus buah, perangkap feromon, rumah kalis serangga, burung pungguk.</li>
                    <li><strong>g. Nama Operator:</strong> Nama individu yang menjalankan pengawasan.</li>
                </ul>
                <p><strong>* Pengawasan:</strong> Pengawasan perosak perlu dijalankan bagi mengenalpasti jenis perosak dan juga peratusan kerosakan sebelum penggunaan racun perosak.</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
<!-- End Modal -->


    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <form action="<?php echo e(route('form44.daily.store')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="card-body">
                        <div class="form-group mb-4">
                            <label for="id_farm_section">(a)Farm Section</label>
                            <select class="form-select" name="id_farm_section" id="id_farm_section" class="form-control" required>
                                <option value="">Select Farm Section</option>
                                <!-- Populate options from the database -->
                                <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($section->id); ?>"><?php echo e($section->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>

                        <div class="form-group mb-4">
                            <label for="cara_pengawasan">(b)Cara Pengawasan</label>
                            <input type="text" name="cara_pengawasan" id="cara_pengawasan" class="form-control" required>
                        </div>

                        <div class="form-group mb-4">
                            <label for="lokasi_blok">(c)Lokasi / Blok</label>
                            <input type="text" name="lokasi_blok" id="lokasi_blok" class="form-control" required>
                        </div>

                        <div class="form-group mb-4">
                            <label for="nama_perosak">(d)Nama Perosak</label>
                            <input type="text" name="nama_perosak" id="nama_perosak" class="form-control" required>
                        </div>

                        <div class="form-group mb-4">
                            <label for="bil_perosak_peratusan_kerosakan">(e)Bil. Perosak/ Peratus Kerosakan </label>
                            <input type="text" name="bil_perosak_peratusan_kerosakan"
                                id="bil_perosak_peratusan_kerosakan" class="form-control" required>
                        </div>

                        <div class="form-group mb-4">
                            <label for="kaedah_kawalan">(f)Kaedah Kawalan</label>
                            <input type="text" name="kaedah_kawalan" id="kaedah_kawalan" class="form-control" required>
                        </div>

                        <div class="form-group mb-4">
                            <label for="nama_operator">(g)Nama Operator</label>
                            <input type="text" name="nama_operator" id="nama_operator" class="form-control"
                                value="<?php echo e(Auth::user()->username); ?>" readonly>
                        </div>

                    </div>

                    <div class="card-footer">
                        <button type="submit" class="btn btn-primary">Submit</button>
                    </div>
                </form>
            </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_44/create44.blade.php ENDPATH**/ ?>