
<?php $__env->startSection('title','Cured'); ?>
<?php $__env->startSection('content'); ?>
    <h2 class="ms-2 mb-3 card-title">Deworming CURE List</h2>
    <div class="card mt-3 m-lg-2">
        <div class="card-body mt-2 table_card">
            <div class="add-new-button-hidden">
                <a href="<?php echo e(route('cured.show')); ?>" class="btn add_new_btn"
                   style="float: right;">Show Under Treatment
                    List</a>
            </div>
            <table id="myTable" class="table table-bordered dt-responsive nowrap w-100">
                <thead>
                <tr>
                    <th><?php echo e(__('messages.sl')); ?></th>
                    <th>Tag ID</th>
                    <th>Diagnosis Name</th>
                    <th>Treatment Date</th>
                    <th>Cured Date</th>
                    <th>Status</th>
                </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $treatments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e(++$key); ?></td>
                        <td><?php echo e(($item->cattle_id) ? $item->cattle->tag->uid : 'N/A'); ?></td>
                        <td><?php echo e(($item->disease_id) ? $item->disease->name : 'N/A'); ?></td>
                        <td><?php echo e(($item->date) ?\Carbon\Carbon::createFromFormat('Y-m-d', $item->date)->format('d-m-Y') : 'N/A'); ?></td>
                        <td><?php echo e(($item->cure_date) ? \Carbon\Carbon::createFromFormat('Y-m-d', $item->cure_date)->format('d-m-Y') : 'N/A'); ?></td>
                        <td>Cured</td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('backend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\hr_and_att\resources\views/backend/health/cure/index.blade.php ENDPATH**/ ?>