@extends('Component.layout')
@section('title', 'Settings - Iqra Admin')
@section('breadcrumb', 'Settings')
@section('content')
{{-- Page Header --}}
{{-- No permissions state --}}
@if(empty($allowedTabs))
Your Super Admin has not granted you access to any settings sections yet. Please contact your system administrator.
@else
{{-- Alerts --}}
@if(session('success'))
@endif
@if($errors->any())
@foreach($errors->all() as $e)- {{ $e }}
@endforeach
@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
@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)) }}
@endif
{{-- ===== EMAIL TAB ===== --}}
@if(in_array('email', $allowedTabs))
Configure the outgoing mail server for system notifications.
@endif
{{-- ===== PAYMENT TAB ===== --}}
@if(in_array('payment', $allowedTabs))
Configure fee collection and payment gateway credentials.
@endif
{{-- ===== QR CODE TAB ===== --}}
@if(in_array('qrcode', $allowedTabs))
Generate QR codes for student IDs, payment links, forms, and more.
@if(session('qr_url'))
Generated QR Code
{{ session('qr_text') }}
@else
QR Preview
Enter content and click Generate
@endif
@endif
{{-- end right --}}
{{-- end grid --}}
@endif {{-- end no-permissions check --}}
@endsection