@php $apple_download = (config('resto.apple_download_directory') && config('resto.apple_download_directory') != '' ) ? config('resto.apple_download_directory') : ($_restaurant->app_config ? $_restaurant->app_config->apple_download : false); $dataDevice = ($device->isMobile())?'Mobile':(($device->isTablet())?'Tablet':'Desktop'); $dataSystem = $dataDevice . ($device->device() ? ' ' . $device->device() . ': ': ': ') . 'System ' . $device->platform() . ' / Browser ' . $device->browser(); // $dataSystem = ($device->isiOS())?'ios':(($device->isAndroidOS())?'android':'otro'); $body_class = $restaurant_template->box_shadow ? 'boxed':'smoothscroll'; $route_name = (\Request::route() ? \Request::route()->getName():'welcome'); $routes_object = [ 'checkout' => setRoute('checkout'), 'voucher_finish' => setRoute('voucher-finish', [ 'order_id' => 'orderid', 'slug' => 'slug', 'id' => 'id' ] ), 'customer_addresses' => route('addresses.index'), 'order_online' => setRoute(($template_name != 'template5') ? 'order-online' : 'home'), 'order_online_slug' => setRoute(($template_name != 'template5') ? 'order-online' : 'home', [ 'slug' => 'slug_r', 'id' => 'id_b' ] ), 'set_checkout' => setRoute('set-checkout'), 'set_checkout_slug' => setRoute('set-checkout', [ 'slug' => 'slug_r', 'id' => 'id_b' ] ), 'view_details' => setRoute('order-online.view-details'), 'verify_address' => url('verify-delivery-area'), ]; @endphp {{-- CSRF Token --}} {{-- If exists seo metatags and title page --}} @include('shared.commons.title-keywords-page') {{-- Favicon Section --}} {!! Html::favicon( (isset($logo_config->icon) ? (asset_remote('logos/icon').'/'.$logo_config->icon) : asset('img/logo/tastyboom_icon.png')), ['rel' => 'icon', 'type' => 'image/png'], request()->secure()) !!} {!! Html::favicon( (isset($logo_config->icon) ? (asset_remote('logos/icon').'/'.$logo_config->icon) : asset('img/logo/tastyboom_icon.png')), ['rel' => 'apple-touch-icon', 'type' => 'image/png'], request()->secure() ) !!} {!! Html::favicon( (isset($logo_config->icon) ? (asset_remote('logos/icon').'/'.$logo_config->icon) : asset('img/logo/tastyboom_icon.png')), ['rel' => 'apple-touch-icon', 'type' => 'image/png', 'sizes' => '152x152'], request()->secure() ) !!} {!! Html::favicon( (isset($logo_config->icon) ? (asset_remote('logos/icon').'/'.$logo_config->icon) : asset('img/logo/tastyboom_icon.png')), ['rel' => 'apple-touch-icon', 'type' => 'image/png', 'sizes' => '167x167'], request()->secure() ) !!} {!! Html::favicon( (isset($logo_config->icon) ? (asset_remote('logos/icon').'/'.$logo_config->icon) : asset('img/logo/tastyboom_icon.png')), ['rel' => 'apple-touch-icon', 'type' => 'image/png', 'sizes' => '180x180'], request()->secure() ) !!} @section('extra-head') {{-- Styles --}} @show {!! $template_config->template->extra_styles ?? '' !!} {!! $page_config->extra_styles ?? '' !!} @yield('extra-head-script') {!! $page_config->json_ld ?? '' !!} {!! $page_config->script_head ?? '' !!} {!! $template_config->template->extra_scripts ?? '' !!} {!! $page_config->script_body ?? '' !!} {!! $template_config->template->extra_scripts_body ?? '' !!}
{{----}}
@if($template_name == 'template1')
@endif @section('modals') @include('layouts.modals') @show
@yield('content') @include('shared.footers') {{-- Back To Top Button --}} @if ($template_name == 'template1') @else @endif @include('shared.commons.to-cart-fixed') @include('shared.commons.nav-to-back')
{!! Html::script('js/axios.min.js', [], Request::secure()) !!} @section('extra-scripts') {{-- Custom Scripts --}} @show @if($_branch->search_criteria == 'coordinates') {!! Html::script('https://maps.googleapis.com/maps/api/js?key='.$maps_googleapis_key.'&sessiontoken='.\Illuminate\Support\Str::uuid().'&libraries=places', [ 'async' => 'async', 'defer' => 'defer' ]) !!} @endif @guest @endguest {{-- Alertas Informativas Configuradas epara el Template --}} @php $array_alerts = ['coupon', 'image', 'mix', 'product', 'promo', 'text', 'top']; @endphp @if (count($template_config->alert) > 0) @for ($i = 0; $i < count($template_config->alert); $i++) @if ($template_config->alert[$i]->status && diffence_days($template_config->alert[$i]->date_end) >= 0) @includeIf('shared.commons.alert.' .$template_config->alert[$i]->type, [ 'alert' => $template_config->alert[$i], 'id' => $i ]) @php $key = array_search(explode('-', $template_config->alert[$i]->type)[1],$array_alerts); if ($key) { unset($array_alerts[$key]); } @endphp @endif @endfor @endif {{-- ./Alertas --}} @if ($apple_download)
@include('layouts.modal-apple', ['dataDevice' => $dataDevice])
@endif {!! $template_config->footer->extra_scripts ?? '' !!}