@php $host = request()->getHttpHost(); // Attempt to find the domain associated with the host $domain = \Stancl\Tenancy\Database\Models\Domain::where('domain', $host)->first(); // Initialize $tenant and $planEndsAt with default values $tenant = null; $planEndsAt = null; if ($domain) { // If a domain is found, attempt to find the tenant associated with it $tenant = \App\Models\Tenant::where('id', $domain->tenant_id)->first(); if ($tenant && $tenant->plan_ends_at) { // Parse the plan end date if it exists $planEndsAt = \Carbon\Carbon::parse($tenant->plan_ends_at)->timestamp; } } @endphp @section('title') @show :: {{ $snipeSettings->site_name }} {{-- --}} {{-- stylesheets --}} @if ($snipeSettings && $snipeSettings->allow_user_skin == 1 && Auth::check() && Auth::user()->present()->skin != '') @else @endif {{-- page level css --}} @stack('css') @if ($snipeSettings && $snipeSettings->header_color != '') @endif {{-- Custom CSS --}} @if ($snipeSettings && $snipeSettings->custom_css) @endif @livewireStyles @if ($snipeSettings && $snipeSettings->allow_user_skin == 1 && Auth::check() && Auth::user()->present()->skin != '') @else @endif {{ trans('general.skip_to_main_content') }}