<?php $__env->startSection('panel'); ?>
    <section>
        <h3 class="page-title mb-4"><?php echo e($setTitle); ?></h3>
        <div class="filter-wrapper">
            <div class="card-filter">
                <form action="<?php echo e(route('admin.sms.gateway.send')); ?>" method="POST" id="smsgateway">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field("PUT"); ?>
                    <select name="sms_gateway_id" class="form-select gateway">
                        <?php $__currentLoopData = $smsGateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $smsGateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($smsGateway->id); ?>" <?php if($smsGateway->id == $setting->sms_gateway_id): ?> selected <?php endif; ?>><?php echo e(__(ucfirst($smsGateway->name))); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </form>
            </div>
        </div>

        <?php echo $__env->make('admin.partials.table', [
            'columns' => [
                'created_at' => __('admin.table.created_at'),
                'sms_gateway_name' => __('admin.table.gateway_name'),
                'status' => __('admin.table.status'),
                'action' => __('admin.table.action'),
            ],
            'rows' => $smsGateways,
            'page_identifier' => \App\Enums\PageIdentifier::SMS_GATEWAYS->value,
        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script-push'); ?>
    <script>
        "use strict";
        $(document).ready(function () {
            $(".gateway").on('change', function () {
                $("#smsgateway").submit();
            });
        });
    </script>
<?php $__env->stopPush(); ?>




<?php echo $__env->make('admin.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dakehfsw/app.stellenccecapital.com/src/resources/views/admin/sms/index.blade.php ENDPATH**/ ?>