{{ session('success') }}
@endif
@if(isset($errors) && $errors->any())
- @foreach($errors->all() as $e)
- {{ $e }} @endforeach
@php $theme = \App\Models\AppSetting::get('theme', 'light'); $primary = \App\Models\AppSetting::get('primary_color', '#0f172a'); @endphp
@php $mod = function(string $key) { static $cache = null; if ($cache === null) { try { $cache = \Illuminate\Support\Facades\DB::table('modules')->pluck('is_enabled','key'); } catch (\Throwable $e) { $cache = collect(); } } if ($cache->isEmpty()) return true; return (bool)($cache[$key] ?? true); }; @endphp