@extends('Component.layout') @section('title', 'Settings - Iqra Admin') @section('breadcrumb', 'Settings') @section('content')
{{-- Page Header --}}

Settings

Manage your account and system configuration options.

Back to Dashboard
{{-- No permissions state --}} @if(empty($allowedTabs))

No Settings Access

Your Super Admin has not granted you access to any settings sections yet. Please contact your system administrator.

@else {{-- Alerts --}} @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif {{-- Permission badge strip --}}
Your Access: @php $tabMeta = [ 'profile' => ['label' => 'My Profile', 'color' => 'emerald'], 'email' => ['label' => 'Email Config', 'color' => 'blue'], 'payment' => ['label' => 'Payment Config', 'color' => 'violet'], 'qrcode' => ['label' => 'QR Code', 'color' => 'slate'], ]; @endphp @foreach($allowedTabs as $tab) @php $meta = $tabMeta[$tab] ?? ['label' => ucfirst($tab), 'color' => 'slate']; @endphp {{ $meta['label'] }} @endforeach
{{-- Settings Grid --}}
{{-- Left Tab Menu --}}
Settings Menu
@foreach($allowedTabs as $tab) @php $icons = [ 'profile' => '', 'email' => '', 'payment' => '', 'qrcode' => '', ]; $labels = ['profile' => 'My Profile', 'email' => 'Email Config', 'payment' => 'Payment Config', 'qrcode' => 'QR Code Generator']; @endphp @endforeach
{{-- Right Content Panels --}}
{{-- ===== PROFILE TAB ===== --}} @if(in_array('profile', $allowedTabs))
{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->email }}

Admin Operator
@csrf
@endif {{-- ===== EMAIL TAB ===== --}} @if(in_array('email', $allowedTabs))

Email / SMTP Configuration

Configure the outgoing mail server for system notifications.

@csrf

Ensure your SMTP credentials are correct before saving. Incorrect settings may prevent email delivery.

@endif {{-- ===== PAYMENT TAB ===== --}} @if(in_array('payment', $allowedTabs))

Payment Gateway Configuration

Configure fee collection and payment gateway credentials.

@csrf

Keep your secret key private. Never share it or expose it in frontend code.

@endif {{-- ===== QR CODE TAB ===== --}} @if(in_array('qrcode', $allowedTabs))

QR Code Generator

Generate QR codes for student IDs, payment links, forms, and more.

@csrf
@foreach([['Text / URL','url'],['Student ID','student'],['Payment Link','payment'],['Admission','admission']] as $type) @endforeach
@if(session('qr_url'))
Generated QR Code
QR Code

{{ session('qr_text') }}

Download
@else

QR Preview

Enter content and click Generate

@endif
@endif
{{-- end right --}}
{{-- end grid --}} @endif {{-- end no-permissions check --}}
@endsection