

<?php $__env->startSection('styles'); ?>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

<style>
    body {
        font-family: 'Inter', sans-serif;
    }

    .settings-card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        background: #fff;
        overflow: hidden;
    }

    .card-header-settings {
        background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
        padding: 25px 30px;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .provider-logo {
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 15px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .info-box {
        background: #f0f9ff;
        border-left: 4px solid #3b82f6;
        padding: 15px 20px;
        border-radius: 6px;
        margin-bottom: 25px;
        font-size: 13px;
        color: #334155;
    }

    .form-label-custom {
        font-weight: 600;
        font-size: 13px;
        color: #475569;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .input-group-text {
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #64748b;
        border-right: none;
    }

    .form-control-custom {
        height: 48px;
        border: 1px solid #e2e8f0;
        border-left: none;
        font-size: 14px;
        color: #1e293b;
        transition: all 0.3s;
    }

    .form-control-custom:focus {
        border-color: #4e73df;
        box-shadow: none;
        background-color: #fff;
    }

    .input-group:focus-within .input-group-text {
        border-color: #4e73df;
        color: #4e73df;
    }

    .helper-text {
        font-size: 12px;
        color: #94a3b8;
        margin-top: 5px;
        display: block;
    }

    .btn-save {
        background: #4e73df;
        color: white;
        padding: 12px 30px;
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
        border: none;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
    }

    .btn-save:hover {
        background: #2e59d9;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
    }
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">

    <div class="row justify-content-center">
        <div class="col-lg-8">
            
            <div class="mb-4">
                <h1 class="h3 mb-0 text-gray-800" style="font-weight: 700;"><?php echo e(__('SMS Settings')); ?></h1>
                <p class="text-muted" style="font-size: 14px;">Configure your SMS gateway integration details.</p>
            </div>

            <div class="card settings-card">
                <div class="card-header-settings">
                    <div>
                        <h5 class="m-0 font-weight-bold"><i class="fas fa-cogs mr-2"></i> <?php echo e(__('API Configuration')); ?></h5>
                    </div>
                    <div class="provider-logo">
                        <i class="fas fa-server mr-1"></i> BulkSMSBD
                    </div>
                </div>

                <div class="card-body p-5">
                    
                    <?php if(session('success')): ?>
                        <div class="alert alert-success alert-dismissible fade show shadow-sm" role="alert" style="border-radius: 8px;">
                            <i class="fas fa-check-circle mr-2"></i> <?php echo e(session('success')); ?>

                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                    <?php endif; ?>

                    <div class="info-box">
                        <div class="d-flex">
                            <i class="fas fa-info-circle fa-lg mt-1 mr-3 text-primary"></i>
                            <div>
                                <strong>API Integration Guide:</strong><br>
                                Please login to your BulkSMSBD account to retrieve the API Key. Ensure that your Sender IDs are approved before using them here.
                            </div>
                        </div>
                    </div>

                    <form action="<?php echo e(route('admin.sms.settings.update')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        
                        <div class="form-group mb-4">
                            <label class="form-label-custom"><?php echo e(__('API Key')); ?> <span class="text-danger">*</span></label>
                            <div class="input-group">
                                <div class="input-group-prepend">
                                    <span class="input-group-text"><i class="fas fa-key"></i></span>
                                </div>
                                <input type="text" name="sms_api_key" class="form-control form-control-custom" value="<?php echo e($gs->sms_api_key ?? ''); ?>" placeholder="Enter your 32-digit API Key" required>
                            </div>
                            <small class="helper-text">This key is required to authenticate your requests with the SMS gateway.</small>
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group mb-4">
                                    <label class="form-label-custom"><?php echo e(__('Default Sender ID')); ?></label>
                                    <div class="input-group">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text"><i class="fas fa-paper-plane"></i></span>
                                        </div>
                                        <input type="text" name="sms_sender_id" class="form-control form-control-custom" value="<?php echo e($gs->sms_sender_id ?? ''); ?>" placeholder="e.g. 8809612xxxxxx">
                                    </div>
                                    <small class="helper-text"><i class="fas fa-check text-success mr-1"></i> Used for Non-Masking SMS.</small>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group mb-4">
                                    <label class="form-label-custom"><?php echo e(__('Brand / Masking ID')); ?></label>
                                    <div class="input-group">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text"><i class="fas fa-id-card"></i></span>
                                        </div>
                                        <input type="text" name="masking_sender_id" class="form-control form-control-custom" value="<?php echo e($gs->masking_sender_id ?? ''); ?>" placeholder="e.g. MYCOMPANY">
                                    </div>
                                    <small class="helper-text"><i class="fas fa-star text-warning mr-1"></i> Used for Branded SMS (Optional).</small>
                                </div>
                            </div>
                        </div>

                        <div class="d-flex justify-content-end mt-4">
                            <button type="submit" class="btn btn-save">
                                <i class="fas fa-save mr-2"></i> <?php echo e(__('Save Configuration')); ?>

                            </button>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\project\resources\views/admin/sms/settings.blade.php ENDPATH**/ ?>