<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.layout-dashboard','data' => ['title' => 'Schedule histories']]); ?>
<?php $component->withName('layout-dashboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'Schedule histories']); ?>
  
    <div class="app-content">
        <link href="<?php echo e(asset('plugins/datatables/datatables.min.css')); ?>" rel="stylesheet">
        <link href="<?php echo e(asset('plugins/select2/css/select2.css')); ?>" rel="stylesheet">
        <link href="<?php echo e(asset('css/custom.css')); ?>" rel="stylesheet">
        <div class="content-wrapper">
            <div class="container">
                <?php if(session()->has('alert')): ?>
                <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.alert','data' => []]); ?>
<?php $component->withName('alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
                    <?php $__env->slot('type',session('alert')['type']); ?>
                    <?php $__env->slot('msg',session('alert')['msg']); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
             <?php endif; ?>
             <?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul> 
    </div>
<?php endif; ?>
               
           
                
    
<div class="row mt-4">
  <div class="col">
      <div class="card">
          <div class="card-header d-flex justify-content-between">
          <h5 class="card-title">Schedule Blasts</h5>

          <div class="d-flex">
          
            
          </div>
             
          </div>
          <div class="card-body">
              <table id="datatable1" class="display" style="width:100%">
                  <thead>
                      <tr>
                          <th>Total Receiver</th>
                          <th>Type</th>
                          <th>Sender</th>
                          <th>Message</th>
                          <th>Execute at</th>
                          <th>Status</th>
                          
                      </tr>
                  </thead>
                  <tbody>
                     <?php $__currentLoopData = $schedule; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $schedule): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         
                     <tr>
                         <td><?php echo e(count(json_decode($schedule->numbers))); ?></td>
                         <td><span class="badge badge-secondary badge-sm text-warning"><?php echo e($schedule->type); ?></span></td>
                         <td><span class="badge badge-secondary badge-sm text-warning"><?php echo e($schedule->sender); ?></span></td>
                         <td> <textarea name="" id="" cols="30" rows="2" disabled><?php echo e(Str::limit($schedule->text,100)); ?></textarea> </td>
                         <td><span class="badge badge-sm text-primary"><?php echo e($schedule->datetime); ?></span></td>
                         <td><span class="badge badge-<?php echo e($schedule->is_executed === 1 ? 'success' : 'danger'); ?>"><?php echo e($schedule->is_executed === 1 ? 'Executed' : 'Waiting'); ?></span></td>
                         
                      </tr>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    

                  </tbody>
                  <tfoot></tfoot>
              </table>
          </div>
      </div>
  </div>

</div>






    <script src="<?php echo e(asset('js/pages/datatables.js')); ?>"></script>
    <script src="<?php echo e(asset('js/pages/select2.js')); ?>"></script>
    <script src="<?php echo e(asset('plugins/datatables/datatables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('plugins/select2/js/select2.full.min.js')); ?>"></script>
  <script src="<?php echo e(asset('js/autoreply.js')); ?>"></script>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>






<?php /**PATH /Users/ilmans/Documents/applications/wamd/resources/views/pages/scheduled-lists.blade.php ENDPATH**/ ?>