@if($agency->logo) @endif @stack('styles') {{-- Custom CSS from page settings --}} @if($page->custom_css) @endif {{-- Header scripts --}} @if($page->header_scripts) {!! $page->header_scripts !!} @endif @include('page.agency.themes.default.header')
{{ $slot }}
@include('page.agency.themes.default.footer') @stack('scripts') {{-- Custom JS from page settings --}} @if($page->custom_js) @endif {{-- Footer scripts --}} @if($page->footer_scripts) {!! $page->footer_scripts !!} @endif {{-- Modern Enhancements --}} @php function adjustBrightness($hex, $steps) { $hex = str_replace('#', '', $hex); $r = hexdec(substr($hex, 0, 2)); $g = hexdec(substr($hex, 2, 2)); $b = hexdec(substr($hex, 4, 2)); $r = max(0, min(255, $r + $steps)); $g = max(0, min(255, $g + $steps)); $b = max(0, min(255, $b + $steps)); return '#' . str_pad(dechex($r), 2, '0', STR_PAD_LEFT) . str_pad(dechex($g), 2, '0', STR_PAD_LEFT) . str_pad(dechex($b), 2, '0', STR_PAD_LEFT); } @endphp