@extends('layouts.app') @section('title', __('layout.navigation.gold_products')) @php function getCurrencySymbol($currency) { $symbols = [ 'USD' => '$', 'usd' => '$', 'EUR' => '€', 'eur' => '€', 'GBP' => '£', 'gbp' => '£', 'ILS' => '₪', 'ils' => '₪', 'SAR' => 'ر.س', 'sar' => 'ر.س', 'AED' => 'د.إ', 'aed' => 'د.إ', 'KWD' => 'د.ك', 'kwd' => 'د.ك', 'BHD' => 'ب.د', 'bhd' => 'ب.د', 'QAR' => 'ر.ق', 'qar' => 'ر.ق', 'OMR' => 'ر.ع', 'omr' => 'ر.ع', 'JOD' => 'د.أ', 'jod' => 'د.أ', 'LBP' => 'ل.ل', 'lbp' => 'ل.ل', 'EGP' => 'ج.م', 'egp' => 'ج.م', ]; return $symbols[$currency] ?? '$'; } @endphp @section('content') @php($goldProducts = trans('gold_products')) @php($isRtl = app()->getLocale() === 'ar')
{{ $goldProducts['badge'] }} {{ $goldProducts['total_label'] }}: {{ $totalProducts }}

{{ $goldProducts['title'] }}

{{ $goldProducts['subtitle'] }}

@foreach($categorySections as $section) @php($category = $section['key']) @foreach($section['products'] as $product)
{{ $product->name }}
{{ $category === 'other' ? trans('gold_products.other_category') : ucwords($category) }}

{{ $product->name }}

@if($product->price)
{{ getCurrencySymbol($product->currency ?? 'USD') }}{{ number_format($product->price, 2) }}
@endif @auth @if($product->price)
@csrf
@endif @endauth @guest @if($product->price) {{ $isRtl ? 'سجل دخولك للشراء' : 'Login to Purchase' }} @endif @endguest
@endforeach @endforeach
@endsection