@php // $db_settings = \App\Models\Setting::get(); $db_settings = Cache::rememberForever('setting_cache', function () { return \App\Models\Setting::get(); }); $settings = []; foreach ($db_settings as $row) { $settings[$row->name] = $row->value; } $user = auth()->user(); @endphp @if (isset($settings)) @yield('title') | {{ $settings['website_name'] ?? '' }} @if (isset($settings['icon']) && is_file('storage/settings/' . isset($settings['icon']) ? $settings['icon'] : '')) @endif @endif @if (empty($settings)) @yield('title') @endif {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @yield('page_css') @include('partials.hide_amounts')
@if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @yield('content')
@include('layouts.inc.scripts') @include('help_videos._player')