@php $cwd = getcwd(); $cssName = basename(glob($cwd . '/build/assets/*.css')[0], '.css'); $jsName = basename(glob($cwd . '/build/assets/*.js')[0], '.js'); $css = asset('build/assets/' . $cssName . '.css'); $js = asset('build/assets/' . $jsName . '.js'); @endphp @yield('title', config('app.name', 'XTube')) @php $favicon = App\Models\WebSetting::where('key', 'site_favicon')->first(); $logo = App\Models\WebSetting::where('key', 'site_logo')->first(); @endphp @if ($favicon && $favicon->value) @endif @vite(['resources/css/app.css', 'resources/js/app.js']) @php $headerAffiliateCode = App\Helpers\AffiliateHelper::render('header_affiliate_code'); @endphp @if ($headerAffiliateCode) {!! $headerAffiliateCode !!} @endif @php $headerStickyBanner = App\Helpers\AffiliateHelper::render('banner_header_sticky'); @endphp @if ($headerStickyBanner)
{!! $headerStickyBanner !!}
@endif
@auth @if (auth()->user()->role === 'admin') 🚀 Dashboard Admin {{-- @else My Profile --}} @endif @else Sign In @endauth
@yield('content')
@php $bottomStickyBanner = App\Helpers\AffiliateHelper::render('banner_bottom_sticky'); @endphp @if ($bottomStickyBanner)
{!! $bottomStickyBanner !!}
@endif @php $popupBanner = App\Helpers\AffiliateHelper::render('banner_popup_centered'); @endphp @if ($popupBanner) @endif @php $histatsCode = App\Helpers\AffiliateHelper::render('histats_code'); @endphp @if ($histatsCode) {!! $histatsCode !!} @endif