File Manager Lite
Dir:
/home/codewavebd/public_html/storage/framework/views
Upload
[..]
0419c3b4397b677ba7ac1eda5123e17f.php (1.29 KB)
Edit
Rename
Del
068c18d520b27a8ff1423722b6312560.php (22.36 KB)
Edit
Rename
Del
0795cca15855983b141802e4fd89e461.php (4.39 KB)
Edit
Rename
Del
0e1be39358f755311010acf398697d60.php (2.08 KB)
Edit
Rename
Del
15856b5c36f519621cce359f1a26e2d7.php (994 B)
Edit
Rename
Del
3e1710ec4e21ac5493271cb2b5552cf7.php (2.85 KB)
Edit
Rename
Del
447a9b2c8727517da36054dd2c1b33d6.php (3.52 KB)
Edit
Rename
Del
47c170a650b461bf6a74b7d1e854c900.php (17.69 KB)
Edit
Rename
Del
515e1f03c298c659e9db197609ba08b1.php (6.12 KB)
Edit
Rename
Del
5b3a79cc21083b027681cdf0634241fb.php (400 B)
Edit
Rename
Del
682bb4034c709b5879af96472a314fc7.php (639 B)
Edit
Rename
Del
688c94919a2fc26ad1abb77981d242f2.php (8.86 KB)
Edit
Rename
Del
756242eee78ae49f4422220d2464f45c.php (438 B)
Edit
Rename
Del
7e64786483d8195d55997bc40261bd4d.php (4.16 KB)
Edit
Rename
Del
866e2c7ac5e30bd257fc6fc609436265.php (31.52 KB)
Edit
Rename
Del
89098a8dad14253bcf8af2d780582679.php (10.75 KB)
Edit
Rename
Del
94028580101043519a8504a8cf2b0892.php (10.07 KB)
Edit
Rename
Del
9dcc282f9339af30c47dc4137c473f69.php (8.87 KB)
Edit
Rename
Del
a9664f07548515009c37c65f764a4a82.php (3.91 KB)
Edit
Rename
Del
a9d5c1ecbb67907b49661e1272571daa.php (1.02 KB)
Edit
Rename
Del
be1e3f3b055d6c88ab57c2af7ec12e8b.php (30.91 KB)
Edit
Rename
Del
c23f28f2630b479d46f1d3d0c3746956.php (2.73 KB)
Edit
Rename
Del
c9cec9b4bcd4de27034c2c6796387677.php (539 B)
Edit
Rename
Del
caf541575eb0abd4baa0fad890f00979.php (7.3 KB)
Edit
Rename
Del
d0417fa560098e9ae4583d5383628327.php (10.14 KB)
Edit
Rename
Del
d8b8273e38d10585e0fdc0631e21ccf1.php (3.19 KB)
Edit
Rename
Del
db98352af20bff2623d3fe3d4aadd205.php (453 B)
Edit
Rename
Del
f3e7d0cccc04f872034d614e09e81b12.php (3 KB)
Edit
Rename
Del
f9acbcec80f93d909aae9a145c283e31.php (908 B)
Edit
Rename
Del
Edit: 47c170a650b461bf6a74b7d1e854c900.php
<?php $__env->startSection('title', 'Website Settings'); ?> <?php $__env->startSection('page_title', 'Configuration Console'); ?> <?php $__env->startSection('content'); ?> <div class="admin-card mb-5"> <form action="<?php echo e(route('admin.settings.save')); ?>" method="POST" enctype="multipart/form-data" class="admin-form"> <?php echo csrf_field(); ?> <!-- Tab Navigation and Save Button Header --> <div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center border-bottom border-secondary mb-4 pb-2 gap-3"> <ul class="nav nav-tabs border-0" id="settingsTab" role="tablist" style="border-bottom: none !important;"> <li class="nav-item"> <button class="nav-link text-white active bg-transparent border-0 border-bottom-indigo" id="general-tab" data-bs-toggle="tab" data-bs-target="#general" type="button">General & Contact</button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="seo-tab" data-bs-toggle="tab" data-bs-target="#seo" type="button">Global SEO Specs</button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="tracking-tab" data-bs-toggle="tab" data-bs-target="#tracking" type="button">Tracking Codes</button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="robots-tab" data-bs-toggle="tab" data-bs-target="#robots" type="button">Robots.txt & Sitemap</button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="chat-tab" data-bs-toggle="tab" data-bs-target="#chat" type="button">Live Chat Console</button> </li> <li class="nav-item"> <button class="nav-link text-white bg-transparent border-0" id="security-tab" data-bs-toggle="tab" data-bs-target="#security" type="button">Security & 2FA</button> </li> </ul> <div class="mb-2 mb-md-0"> <button type="submit" class="btn btn-primary-glow px-4 py-2"><i class="bi bi-save me-1"></i> Save Platform Settings</button> </div> </div> <div class="tab-content" id="settingsTabContent"> <!-- 1. General & Contact Settings --> <div class="tab-pane fade show active" id="general"> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label">Site Name</label> <input type="text" name="site_name" class="form-control" value="<?php echo e($settings['site_name']); ?>" required> </div> <div class="col-md-6 mb-3"> <label class="form-label">Site Tagline</label> <input type="text" name="site_tagline" class="form-control" value="<?php echo e($settings['site_tagline']); ?>" required> </div> </div> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label">Site Logo (JPEG, PNG, SVG, WebP, max 2MB)</label> <input type="file" name="site_logo" class="form-control bg-dark text-white border-secondary"> <?php if($settings['site_logo']): ?> <div class="mt-2 p-2 rounded bg-dark border border-secondary d-flex align-items-center gap-3"> <img src="<?php echo e(asset('uploads/' . $settings['site_logo'])); ?>" alt="Logo" style="height: 40px; max-width: 150px; object-fit: contain;"> <span class="small text-muted"><?php echo e($settings['site_logo']); ?></span> </div> <?php else: ?> <div class="mt-1 small text-muted">No custom logo uploaded. Defaulting to Brand Text.</div> <?php endif; ?> </div> <div class="col-md-6 mb-3"> <label class="form-label">Site Favicon (ICO, PNG, WebP, max 512KB)</label> <input type="file" name="site_favicon" class="form-control bg-dark text-white border-secondary"> <?php if($settings['site_favicon']): ?> <div class="mt-2 p-2 rounded bg-dark border border-secondary d-flex align-items-center gap-3"> <img src="<?php echo e(asset('uploads/' . $settings['site_favicon'])); ?>" alt="Favicon" style="height: 32px; width: 32px; object-fit: contain;"> <span class="small text-muted"><?php echo e($settings['site_favicon']); ?></span> </div> <?php else: ?> <div class="mt-1 small text-muted">No custom favicon uploaded. Defaulting to favicon.ico.</div> <?php endif; ?> </div> </div> <div class="row"> <div class="col-md-12 mb-3"> <label class="form-label fw-bold text-info">Default Website Color Theme (For first-time visitors)</label> <select name="default_theme" class="form-select bg-dark text-white border-secondary"> <option value="dark" <?php echo e($settings['default_theme'] === 'dark' ? 'selected' : ''); ?>>Dark Mode (Default)</option> <option value="light" <?php echo e($settings['default_theme'] === 'light' ? 'selected' : ''); ?>>Light Mode</option> </select> </div> </div> <div class="row"> <div class="col-md-4 mb-3"> <label class="form-label">Contact Email</label> <input type="email" name="contact_email" class="form-control" value="<?php echo e($settings['contact_email']); ?>" required> </div> <div class="col-md-4 mb-3"> <label class="form-label">Contact Phone</label> <input type="text" name="contact_phone" class="form-control" value="<?php echo e($settings['contact_phone']); ?>" required> </div> <div class="col-md-4 mb-3"> <label class="form-label">WhatsApp Number (e.g. 8801712345678)</label> <input type="text" name="contact_whatsapp" class="form-control" value="<?php echo e($settings['contact_whatsapp']); ?>" required> </div> </div> <div class="mb-3"> <label class="form-label">Contact Address</label> <textarea name="contact_address" class="form-control" rows="2" required><?php echo e($settings['contact_address']); ?></textarea> </div> <hr class="border-secondary my-4"> <h6 class="text-info font-heading mb-3">Social Profiles</h6> <div class="row"> <div class="col-md-4 mb-3"> <label class="form-label">Facebook Profile URL</label> <input type="url" name="facebook_url" class="form-control" value="<?php echo e($settings['facebook_url']); ?>"> </div> <div class="col-md-4 mb-3"> <label class="form-label">LinkedIn Company URL</label> <input type="url" name="linkedin_url" class="form-control" value="<?php echo e($settings['linkedin_url']); ?>"> </div> <div class="col-md-4 mb-3"> <label class="form-label">GitHub Account URL</label> <input type="url" name="github_url" class="form-control" value="<?php echo e($settings['github_url']); ?>"> </div> </div> </div> <!-- 2. Global SEO Settings --> <div class="tab-pane fade" id="seo"> <div class="mb-3"> <label class="form-label">Default SEO Title Tag</label> <input type="text" name="seo_title" class="form-control" value="<?php echo e($settings['seo_title']); ?>" required> </div> <div class="mb-3"> <label class="form-label">Default SEO Meta Description</label> <textarea name="seo_description" class="form-control" rows="3" required><?php echo e($settings['seo_description']); ?></textarea> </div> <div class="mb-3"> <label class="form-label">Default SEO Meta Keywords (comma separated)</label> <input type="text" name="seo_keywords" class="form-control" value="<?php echo e($settings['seo_keywords']); ?>" required> </div> </div> <!-- 3. Tracking Codes --> <div class="tab-pane fade" id="tracking"> <div class="mb-3"> <label class="form-label">Google Analytics Code Snippet (HTML/Script)</label> <textarea name="google_analytics_code" class="form-control text-monospace" rows="4"><?php echo e($settings['google_analytics_code']); ?></textarea> </div> <div class="mb-3"> <label class="form-label">Google Tag Manager Code Snippet (HTML/Script)</label> <textarea name="google_tag_manager_code" class="form-control text-monospace" rows="4"><?php echo e($settings['google_tag_manager_code']); ?></textarea> </div> <div class="mb-3"> <label class="form-label">Google Search Console Verification Tag (Meta or HTML)</label> <textarea name="google_search_console_code" class="form-control text-monospace" rows="4"><?php echo e($settings['google_search_console_code']); ?></textarea> </div> </div> <!-- 4. Robots.txt and Sitemap Info --> <div class="tab-pane fade" id="robots"> <div class="mb-3"> <label class="form-label">Robots.txt Content Rules</label> <textarea name="robots_txt" class="form-control text-monospace" rows="6" placeholder="User-agent: *..."><?php echo e($settings['robots_txt']); ?></textarea> <small class="text-muted d-block mt-1">Leave empty to auto-generate default rules allowing indexing and specifying the dynamic sitemap URL.</small> </div> <div class="bg-dark p-4 rounded-3 border border-secondary mt-4"> <h6 class="text-info font-heading mb-2">Dynamic XML Sitemap</h6> <p class="small text-muted mb-2">The XML Sitemap updates automatically in real-time as you publish Services, Software, Blog Posts, or Portfolio Projects.</p> <p class="mb-0 small text-white">Sitemap URL: <a href="<?php echo e(url('/sitemap.xml')); ?>" target="_blank" class="text-info text-decoration-none"><?php echo e(url('/sitemap.xml')); ?> <i class="bi bi-box-arrow-up-right small"></i></a></p> </div> </div> <!-- 5. Live Chat Console --> <div class="tab-pane fade" id="chat"> <div class="mb-4"> <label class="form-label fw-bold text-info">Live Chat System Mode</label> <select name="live_chat_mode" class="form-select bg-dark text-white border-secondary mb-3" id="liveChatModeSelect"> <option value="native" <?php echo e($settings['live_chat_mode'] == 'native' ? 'selected' : ''); ?>>CodeWave Interactive Native Live Chat (Form + Live Admin Console)</option> <option value="whatsapp" <?php echo e($settings['live_chat_mode'] == 'whatsapp' ? 'selected' : ''); ?>>Direct Floating WhatsApp Link (Open WhatsApp Chat window)</option> <option value="third_party" <?php echo e($settings['live_chat_mode'] == 'third_party' ? 'selected' : ''); ?>>Third-Party Script Embed (Tawk.to, Crisp, JivoChat)</option> </select> </div> <div class="mb-3" id="thirdPartyScriptWrapper" style="display: <?php echo e($settings['live_chat_mode'] == 'third_party' ? 'block' : 'none'); ?>;"> <label class="form-label text-warning"><i class="bi bi-code-slash me-1"></i>Third-Party Embed JavaScript Code (HTML/Script Tag)</label> <textarea name="live_chat_third_party_code" class="form-control text-monospace bg-dark text-white border-secondary" rows="6" placeholder="<!-- Paste script code from Tawk.to or Crisp here -->"><?php echo e($settings['live_chat_third_party_code']); ?></textarea> <small class="text-muted d-block mt-1">Make sure you paste the complete snippet including the `<script>` tag. This script will automatically render on the bottom-right of the homepage.</small> </div> </div> <!-- 6. Security & 2FA Settings --> <div class="tab-pane fade" id="security"> <div class="mb-4"> <label class="form-label fw-bold text-info">WhatsApp Two-Factor Authentication (2FA)</label> <select name="whatsapp_2fa_enabled" class="form-select bg-dark text-white border-secondary mb-3" id="whatsapp2faToggle"> <option value="false" <?php echo e($settings['whatsapp_2fa_enabled'] === 'false' ? 'selected' : ''); ?>>Disabled (Sign in with password only)</option> <option value="true" <?php echo e($settings['whatsapp_2fa_enabled'] === 'true' ? 'selected' : ''); ?>>Enabled (Requires 6-Digit WhatsApp OTP on login)</option> </select> </div> <div id="whatsapp2faCredentials" style="display: <?php echo e($settings['whatsapp_2fa_enabled'] === 'true' ? 'block' : 'none'); ?>;"> <div class="row"> <div class="col-md-6 mb-3"> <label class="form-label text-warning">Admin WhatsApp Number (e.g. 8801712345678)</label> <input type="text" name="whatsapp_2fa_number" class="form-control" value="<?php echo e($settings['whatsapp_2fa_number']); ?>" placeholder="88017XXXXXXXX"> <small class="text-muted d-block mt-1">Make sure you include the country code prefix (e.g. 880 for Bangladesh) without any leading + or spaces.</small> </div> <div class="col-md-6 mb-3"> <label class="form-label">UltraMsg Instance ID (Optional)</label> <input type="text" name="whatsapp_2fa_instance_id" class="form-control" value="<?php echo e($settings['whatsapp_2fa_instance_id']); ?>" placeholder="instanceXXXXX"> <small class="text-muted d-block mt-1">Provide this to send real OTP messages. If left blank, OTPs will run in simulation mode (logged to laravel.log).</small> </div> </div> <div class="mb-3"> <label class="form-label">UltraMsg API Token (Optional)</label> <input type="password" name="whatsapp_2fa_token" class="form-control" value="<?php echo e($settings['whatsapp_2fa_token']); ?>" placeholder="••••••••••••••••••••"> </div> </div> </div> </div> </form> </div> <!-- Custom active tab border helper --> <style> .border-bottom-indigo { border-bottom: 2px solid var(--admin-accent) !important; } .nav-tabs .nav-link:hover { background-color: transparent !important; color: var(--admin-accent) !important; } </style> <script> document.addEventListener('DOMContentLoaded', () => { const tabs = document.querySelectorAll('#settingsTab button'); tabs.forEach(tab => { tab.addEventListener('click', () => { tabs.forEach(t => t.classList.remove('border-bottom-indigo')); tab.classList.add('border-bottom-indigo'); }); }); // Live Chat Mode Selector Toggle const chatModeSelect = document.getElementById('liveChatModeSelect'); const thirdPartyWrapper = document.getElementById('thirdPartyScriptWrapper'); if (chatModeSelect && thirdPartyWrapper) { chatModeSelect.addEventListener('change', () => { if (chatModeSelect.value === 'third_party') { thirdPartyWrapper.style.display = 'block'; } else { thirdPartyWrapper.style.display = 'none'; } }); } // WhatsApp 2FA Credentials Toggle const 2faSelect = document.getElementById('whatsapp2faToggle'); const 2faCreds = document.getElementById('whatsapp2faCredentials'); if (2faSelect && 2faCreds) { 2faSelect.addEventListener('change', () => { if (2faSelect.value === 'true') { 2faCreds.style.display = 'block'; } else { 2faCreds.style.display = 'none'; } }); } }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\resources\views/admin/settings.blade.php ENDPATH**/ ?>
Simpan