@extends('layouts.app') @section('title', $bank->name) @section('content')
@if($bank->logo) {{ $bank->name }} @endif

@if($isRtl) {{ block('offer.hero.prefix', 'عروض') }} {{ $bank->name }} @else {{ $bank->name }} {{ block('offer.hero.suffix', 'Offers') }} @endif

{{ block('offer.hero.instant_approval', $isRtl ? 'موافقة فورية' : 'Instant Approval') }}
{{ block('offer.body.back', $isRtl ? 'العودة للعروض' : 'Back to Offers') }}

{{ block('offer.body.about_title', $isRtl ? 'عن البنك' : 'About the Bank') }}

{{ $bank->description ?? block('offer.body.about_fallback', $isRtl ? 'أحد أبرز الشركاء الماليين في المملكة.' : 'One of the leading financial partners in the Kingdom.') }}

@php $groupedOffers = ($offers ?? collect())->groupBy(fn($o) => $o->service?->title ?? block('common.labels.general', $isRtl ? 'عام' : 'General')); @endphp @forelse($groupedOffers as $serviceName => $serviceOffers)

{{ $serviceName }}

@foreach($serviceOffers as $offer)
{{ block('offer.body.apr', $isRtl ? 'نسبة الفائدة' : 'APR') }} {{ $offer->apr }}%
{{ block('offer.body.max_amount', $isRtl ? 'الحد الأقصى' : 'Max Amount') }} {{ number_format($offer->max_amount) }} {{ block('common.labels.sar_short', $isRtl ? 'ر.س' : 'SAR') }}
{{ block('offer.body.monthly', $isRtl ? 'القسط الشهري' : 'Monthly Payment') }} {{ number_format($offer->monthly_sample) }} {{ block('common.labels.sar_short', $isRtl ? 'ر.س' : 'SAR') }}
{{ block('offer.body.tenure', $isRtl ? 'المدة' : 'Tenure') }} @if($isRtl) {{ block('offer.body.tenure_prefix', 'حتى') }} {{ $offer->max_tenure ?? 60 }} {{ block('offer.body.tenure_unit_ar', 'شهر') }} @else {{ block('offer.body.tenure_prefix_en', 'Up to') }} {{ $offer->max_tenure ?? 60 }} {{ block('offer.body.tenure_unit_en', 'months') }} @endif
@if(!empty($offer->description))

{{ $offer->description }}

@endif @endforeach @empty

{{ block('offer.body.no_offers', $isRtl ? 'لا توجد عروض متاحة حاليًا.' : 'No offers available at the moment.') }}

@endforelse
@endsection