

<?php $__env->startSection('content'); ?>
    <div class="container text-center">
        <a href="<?php echo e(url('orders/create')); ?>" class="btn btn-success">Create</a>
        <table class="table">
            <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">Company</th>
                    <th scope="col">Name</th>
                    <th scope="col">Phone</th>
                    <th scope="col">Description</th>
                    <th scope="col">Email Date</th>
                    <th scope="col">Due Date</th>
                    <th scope="col">Action</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <th scope="row"><?php echo e($order->id); ?></th>
                        <td><?php echo e($order->company); ?></td>
                        <td><?php echo e($order->name); ?></td>
                        <td><?php echo e($order->phone); ?></td>
                        <td><?php echo e($order->description); ?></td>
                        <td><?php echo e($order->created_at); ?></td>
                        <td><?php echo e($order->due_date); ?></td>
                        <td>
                            <form action="/orders/<?php echo e($order->id); ?>" method="POST">
                                <?php echo method_field('DELETE'); ?>
                                <?php echo csrf_field(); ?>
                                <a href="/orders/<?php echo e($order->id); ?>" class="btn btn-success">View</a>
                                <a href="/orders/<?php echo e($order->id); ?>/edit" class="btn btn-success">Edit</a>
                                <button type="submit" class="btn btn-danger">Delete</button>
                            </form>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
<?php $__env->stopSection(); ?>

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