@php use Illuminate\Support\Facades\App; use App\Models\Category; use App\Models\Occasion; use App\Models\Branch; use App\Models\Announcement; use Carbon\Carbon; $foccasions = Occasion::where('active',1)->get(); $fcategories = Category::where('active',1)->get(); $fbranches = Branch::all(); $msgs = Announcement::all()->filter(function($item) { if (Carbon::now()->between($item->start_dt, Carbon::parse($item->expiry_dt)->toDateString())) { return $item; } }); $selfLink = Route::current()->getName(); $carts = \App\Http\Controllers\CartController::getCart(); $carts = json_decode($carts, true); $logged = auth()->check(); $locale = app()->currentLocale(); @endphp @push('asset-top') @endpush @push('asset-bottom') @if(session('backpage')) @if(session('backpage') == 'login') @elseif(session('backpage') == 'register') @elseif(session('backpage') == 'forgot') @elseif(session('backpage') == 'reset') @elseif(session('backpage') == 'guest-checkout') @elseif(session('backpage') == 'addtocart') @endif @php session()->forget('backpage'); @endphp @endif @endpush
@include('layout.frontend.head') @stack('asset-top') @include('layout.frontend.header') {{-- @if($errors->any()) {!! implode('', $errors->all('