@php use App\Helpers\Site; $p = Site::color('primary'); $a = Site::color('accent'); $rgb = implode(',', [hexdec(substr($p,1,2)), hexdec(substr($p,3,2)), hexdec(substr($p,5,2))]); $onP = Qs::contrastColor($p); $name = Site::name(); $logo = Site::logo(); $fav = Qs::getSetting('favicon'); $desc = Site::get('meta_description'); $pageTitle = isset($title) && $title !== $name ? $title.' | '.$name : $name; $socials = ['facebook' => 'social_facebook', 'instagram' => 'social_instagram', 'twitter' => 'social_twitter', 'youtube' => 'social_youtube']; $wa = preg_replace('/\D/', '', Site::get('social_whatsapp')); @endphp {{ $pageTitle }} @if($desc)@endif @if($desc)@endif @if($fav)@endif
@if(Site::get('site_phone'))@include('site._icon', ['n' => 'phone']){{ Site::get('site_phone') }}@endif @if(Site::get('site_email'))@include('site._icon', ['n' => 'mail']){{ Site::get('site_email') }}@endif
@if(Site::get('site_hours'))@include('site._icon', ['n' => 'clock']){{ Site::get('site_hours') }}@endif @foreach($socials as $icon => $key) @if(Site::get($key))@include('site._icon', ['n' => $icon])@endif @endforeach
@if($logo){{ $name }} logo@else{{ strtoupper(mb_substr($name, 0, 1)) }}@endif {{ $name }}@if(Site::get('site_tagline')){{ Site::get('site_tagline') }}@endif
@yield('content')
@if($wa) @include('site._icon', ['n' => 'whatsapp']) @endif