<?php $__env->startSection('css'); ?>
    <style>
        .shadow-sm {
            display: none !important;
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('user-content'); ?>
    <div class="container-fluid mt-2">
        <div class="row justify-content-center">
            <div class="col-lg-8 col-md-8 col-12">
                <div class="alert alert-success bg-warning text-white border-0">
                    <marquee scrollamount="6">
                        <?php $__currentLoopData = $headlines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$headline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <a href="<?php echo e($headline->link); ?>" class="text-black" style="font-size:20px;"><i class="fe fe-link me-2 white-text" aria-hidden="true"></i><?php echo e($headline->title); ?></a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </marquee>
                </div>
            </div>
        </div>
    </div>
    <div class="card mt-2">
        <div class="card-header d-flex justify-content-between align-items-center">
            <div class="card-title h4">Service History</div>
            <!-- Order New Service Button -->
            <a href="<?php echo e(route('user.boost-create')); ?>" class="btn btn-md btn-info">Order New Service</a>
        </div>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered text-nowrap" id="example1">
                    <thead>
                        <tr>
                            <th scope="col border-bottom-0" width="5%">ID</th>
                            <th scope="col border-bottom-0" width="8%">Date Time</th>
                            <th scope="col border-bottom-0">Link</th>
                            <th scope="col border-bottom-0" width="8%">Charge</th>
                            <th scope="col border-bottom-0" width="8%">Quantity</th>
                            <th scope="col border-bottom-0" width="8%">Service</th>
                            <th scope="col border-bottom-0" width="8%">Reason</th>
                            <th scope="col border-bottom-0" width="8%">Status</th>
                            <th scope="col border-bottom-0" width="8%">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($data->id); ?></td>
                                <td>
                                    <?php echo e(\Carbon\Carbon::parse($data->created_at)->format('d/m/Y g:i A')); ?>

                                </td>
                                <td><a href="<?php echo e($data->link); ?>" target="_blank"><?php echo e($data->link); ?></a></td>
                                <td><?php echo e($data->cost); ?>$</td>
                                <td><?php echo e($data->work_need); ?></td>
                                <td><?php echo e(sub_boost_category($data->sub_category)); ?></td>
                                <td><?php echo e($data->reason); ?></td>
                                <td>
                                    <?php if($data->status == 1): ?>
                                        <span class="badge bg-success">Process</span>
                                    <?php elseif($data->status == 2): ?>
                                        <span class="badge bg-danger">Inprocess</span>
                                    <?php elseif($data->status == 3): ?>
                                        <span class="badge bg-danger">Reject</span>
                                    <?php elseif($data->status == 4): ?>
                                        <span class="badge bg-success">Complete</span>
                                    <?php else: ?>
                                        <span class="badge bg-danger">Pending</span>
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <?php if($data->status == 0): ?>
                                        <a href="<?php echo e(route('user.boost-edit', $data->id)); ?>" class="btn btn-sm btn-success">Edit</a>
                                    <?php endif; ?>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                <?php echo e($datas->links()); ?>

            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script>
        function updateJobWorker(id){
            $('#worker_need_'+id).modal('show');
        }

        function updateJobWorkerMosdalClose(id){
            $('#worker_need_'+id).modal('hide');
        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/microwo1/public_html/resources/views/user/pages/boost-package/index.blade.php ENDPATH**/ ?>