<?php $__env->startSection('title'); ?>
    Admin | sms
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="row justify-content-center">
        <div class="col-lg-12">
            <div class="card shadow-lg border-0 rounded-lg mt-4 mb-3">
                <div class="card-header">
                    <div class="row">
                        <div class="col-md-6">
                            <h4 class="my-2">General SMS List</h4>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table" id="dataTable">
                            <thead class="thead-light">
                                    <tr>
                                    <th>Send From</th>
                                    <th>Sent To</th>
                                    <th>SMS</th>
                                    <th>Cost</th>
                                    <th>Send Time</th>
                                    <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                    $total_cost = 0;
                                ?>
                                <?php $__currentLoopData = $generalSmsList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sms): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php
                                        $total_cost += $sms->sms_cost;
                                    ?>
                                    <tr>
                                        
                                        <td>DataEnvelope</td>
                                        <td><?php echo e($sms->send_to); ?></td>
                                        <td><?php echo e(urldecode($sms->sms_text)); ?></td>
                                        <td><?php echo e($sms->sms_cost); ?></td>
                                        <td><?php echo e($sms->send_time); ?></td>
                                        <td> <?php echo getStatusBadge($sms->status); ?> </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                            <tfoot>
                                <tr class="table-info">
                                    <td colspan="3">Total Cost</td>
                                    <td><?php echo e($total_cost); ?></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div> <!--col-5-->
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hotelier/public_html/resources/views/back/sms/general_sms_index.blade.php ENDPATH**/ ?>