<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-8 mx-auto">
        <div class="card">
            <div class="card-header d-flex justify-content-between align-items-center">
                <h4 class="mb-0">Settings</h4>
            </div>
            <div class="card-body">
                <?php if(session('success')): ?>
                    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>

                <ul class="nav nav-tabs mb-4" id="settingsTabs" role="tablist">
                    <li class="nav-item">
                        <button class="nav-link active" id="receipt-tab" data-bs-toggle="tab" data-bs-target="#receipt" type="button">Receipt Settings</button>
                    </li>
                    <li class="nav-item">
                        <button class="nav-link" id="report-tab" data-bs-toggle="tab" data-bs-target="#report" type="button">Report Settings</button>
                    </li>
                    <?php if(Auth::user() && Auth::user()->isSuperAdmin()): ?>
                    <li class="nav-item ms-auto">
                        <a class="nav-link text-danger" href="<?php echo e(route('settings.system')); ?>">
                            <i class="bi bi-gear"></i> System Settings
                        </a>
                    </li>
                    <?php endif; ?>
                </ul>

                <form method="POST" action="<?php echo e(route('settings.update')); ?>">
                    <?php echo csrf_field(); ?>

                    <div class="tab-content" id="settingsTabsContent">
                        <div class="tab-pane fade show active" id="receipt" role="tabpanel">
                            <div class="mb-3">
                                <label class="form-label">Receipt Header (Business Name)</label>
                                <input type="text" class="form-control" name="receipt_header" value="<?php echo e($receiptSettings['receipt_header']); ?>">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Tagline</label>
                                <input type="text" class="form-control" name="receipt_tagline" value="<?php echo e($receiptSettings['receipt_tagline']); ?>" placeholder="e.g., Your Trusted Shopping Destination">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Address</label>
                                <input type="text" class="form-control" name="receipt_address" value="<?php echo e($receiptSettings['receipt_address']); ?>">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Phone</label>
                                <input type="text" class="form-control" name="receipt_phone" value="<?php echo e($receiptSettings['receipt_phone']); ?>">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Footer Message</label>
                                <textarea class="form-control" name="receipt_footer" rows="2"><?php echo e($receiptSettings['receipt_footer']); ?></textarea>
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Developer Advertisement (Bottom of Receipt)</label>
                                <textarea class="form-control" name="receipt_dev_ad" rows="2" placeholder="e.g., Developed by: Your Company | www.yourcompany.com"><?php echo e($receiptSettings['receipt_dev_ad']); ?></textarea>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="report" role="tabpanel">
                            <div class="mb-3">
                                <label class="form-label">Report Header Title</label>
                                <input type="text" class="form-control" name="report_header" value="<?php echo e($reportSettings['report_header']); ?>">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Company Name</label>
                                <input type="text" class="form-control" name="report_company" value="<?php echo e($reportSettings['report_company']); ?>">
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Footer Message</label>
                                <textarea class="form-control" name="report_footer" rows="2"><?php echo e($reportSettings['report_footer']); ?></textarea>
                            </div>
                            <div class="mb-3">
                                <label class="form-label">Developer Advertisement (Bottom of Report)</label>
                                <textarea class="form-control" name="report_dev_ad" rows="2" placeholder="e.g., Software by: Your Company | www.yourcompany.com"><?php echo e($reportSettings['report_dev_ad']); ?></textarea>
                            </div>
                        </div>
                    </div>

                    <button type="submit" class="btn btn-primary">Save Settings</button>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\AI PROJECT POS\PosAI3\resources\views/settings/index.blade.php ENDPATH**/ ?>