@extends("client.layouts.app") @section("title", __("client.order_a_new_product")) @section("content")

{{ __('client.store.title') }}

{{ __('client.store.subtitle') }}

@if(!empty($cart) && count($cart) > 0) {{ __('client.cart.view_cart') }} @endif
@if(session("error"))
{{ session("error") }}
@endif @forelse($groups as $group)

{{ $group->name }}

@if($group->products->isEmpty())

{{ __('client.store.no_products') }}

@else
@foreach($group->products as $product) @php $pricingRecord = $product->pricing->first(); $startingPrice = null; $startingCycle = ""; if ($pricingRecord) { foreach (["monthly","quarterly","semiannually","annually","biennially","triennially"] as $cycle) { if (isset($pricingRecord->{$cycle}) && (float)$pricingRecord->{$cycle} > 0) { $startingPrice = $pricingRecord->{$cycle}; $startingCycle = $cycle; break; } } } $currPrefix = $currency?->prefix ?? "$"; $currSuffix = $currency?->suffix ?? ""; @endphp @endforeach
@endif
@empty
🛒

{{ __('client.store.no_products_at_all') }}

@endforelse @endsection