@extends('layouts.master') @section('content') @if(isset($storeStatus['result']))
@php $openingHours = (!empty($storeStatus['result'])) ? "(" . date("H:i", strtotime($storeStatus['result']['startTime'])) . " - " . date("H:i", strtotime($storeStatus['result']['endTime'])) . ")" : ""; @endphp
{{ $storeStatus['message'] . $openingHours }}
@endif @if (count($items) > 0) @foreach ($items as $category)

{{ strtoupper(strtolower($category['name'])) }}

@php $onlyOnce = false; @endphp @if(isset($category['result']) && count($category['result']) > 0) @foreach($category['result'] as $item) @if ($category['id'] == 3 && !$onlyOnce && env('ISLIVE') == false) @php $onlyOnce = true; @endphp @endif
@php $userProductClass = ''; $userProductId = session('user_product_id'); if(isset($userProductId) && $userProductId == $item['id']) { $userProductClass = '__user_product'; session()->forget(['user_product_id']); } @endphp
@if (session('customer_id') && !session('isGuest')) @endif @php $from = ""; $label = __('front_site.add_to_cart'); $showPopUp = false; @endphp @if ($item['variation_id'] > 0 || $item['is_extra'] > 0 || $item['is_offer_item']==1) @php $showPopUp = true; $label = __('front_site.select'); $from = __('front_site.from') . " "; @endphp @endif
{{ $item['name'] }}

{{ $item['name'] }}

{{ $item['description'] }}

{{ $from . $item['offer_price_comma'] }}
@endforeach @endif
@endforeach @else

{{ __('front_site.no_items_display') }}

@endif @endsection @section('script') @endsection