{{ __('messages.whatsapp_stores_templates.choos_your_category') }}
@foreach ($whatsappStore->categories as $category)
@endforeach
@if ($whatsappStore->categories->count() == 0)
@endif
{{ __('messages.whatsapp_stores_templates.category_not_found') }}
{{ __('messages.whatsapp_stores_templates.choose_your_product') }}
@foreach ($whatsappStore->products()->latest()->take(8)->get() as $product)
@endforeach
@if ($whatsappStore->products->count() == 0)
@endif
@if ($whatsappStore->products->count() > 0)
@endif
{{-- Business Hours Section --}}
@if ($business_hours == true)
@if ($whatsappStore->businessHours->count())
@php
$todayWeekName = strtolower(\Carbon\Carbon::now()->rawFormat('D'));
@endphp
{{ __('messages.whatsapp_stores_templates.product_not_found') }}
{{ __('messages.business.business_hours') }}
@php
$weekFormat = $whatsappStore->week_format ?? 1;
if ($weekFormat == 2) {
$businessDaysTime = collect($businessDaysTime)->sortKeysUsing(function ($a, $b) {
if ($a == 7) return -1; // Sunday first
if ($b == 7) return 1;
return $a <=> $b;
})->toArray();
}
@endphp
@foreach ($businessDaysTime as $key => $dayTime)
@endforeach
{{ __('messages.business.' . \App\Models\BusinessHour::DAY_OF_WEEK[$key]) }}:
{{ $dayTime ?? __('messages.common.closed') }}
{{ __('messages.pwa.add_to_home_screen') }}
{{ __('messages.pwa.pwa_description') }}