@php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $currency = \App\Models\Setting::currencyLabel($locale); $gymName = $settings['gym_name'] ?? \App\Models\Setting::get('gym_name', 'Gym'); $gymPhone = $settings['gym_phone'] ?? \App\Models\Setting::get('gym_phone', ''); $gymAddress = $settings['gym_address'] ?? \App\Models\Setting::get('gym_address', ''); $typeLabels = [ 'sale' => $isRtl ? 'مبيعات' : 'Sale', 'subscription' => $isRtl ? 'اشتراك' : 'Subscription', 'service' => $isRtl ? 'خدمة' : 'Service', 'purchase' => $isRtl ? 'مشتريات' : 'Purchase', ]; @endphp {{ $isRtl ? 'فاتورة' : 'Invoice' }} - {{ $invoice->invoice_number }}