{{-- Products Block --}} @props(['block']) @php $settings = $block->settings ?? []; $category = $settings['category_id'] ?? null; $maxProducts = $settings['max_products'] ?? 8; $title = $settings['title'] ?? __('store.Featured Products'); $productsQuery = \App\Models\Product::where('available', true); if ($category) { $productsQuery->where('category_id', $category); } $products = $productsQuery->take($maxProducts)->get(); @endphp
{{ number_format($product->product_price) }} {{ __('store.EGP') }}