@section('title', $package->meta_title ?? $package->translated_name . ' | مختبرات بريزما الطبية') @section('description', $package->meta_description ?? $package->translated_short_description) @php $siteSettings = app(\App\Settings\SiteSettings::class); $currencyType = $siteSettings->currency_type ?? 'text'; $currencyText = $siteSettings->currency_text ?? 'ريال'; $currencySvg = $siteSettings->currency_svg ?? ''; $currencyImage = $siteSettings->currency_image ?? ''; $currencyPos = $siteSettings->currency_position ?? 'after'; $currencyIconSize = $siteSettings->currency_icon_size ?? 18; $priceTagBg = $siteSettings->price_tag_bg ?? '#FFFFFF'; $priceTagColor = $siteSettings->price_tag_color ?? '#000000'; $currencyHtml = ''; if ($currencyType === 'text') { $currencyHtml = '' . e($currencyText) . ''; } elseif ($currencyType === 'svg') { $currencyHtml = '' . $currencySvg . ''; } elseif ($currencyType === 'image' && $currencyImage) { $currencyHtml = 'currency'; } @endphp
{{-- Preview Banner --}} @if(isset($isPreview) && $isPreview)
{{ __('preview_banner') }}
@endif
{{-- Main Column --}}
{{-- Hero Image + Price --}}
@if($package->image) {{ $package->translated_name }} @else
@endif
@if($package->discount_percentage > 0) {{ __('discount_off', ['percentage' => $package->discount_percentage]) }} @elseif($package->translated_badge_text) {{ $package->translated_badge_text }} @else {{ __('special_offer') }} @endif
{{ number_format($package->final_price) }} @if($currencyType === 'text') {{ $currencyText }} @elseif($currencyType === 'svg') {!! $currencySvg !!} @elseif($currencyType === 'image' && $currencyImage) currency @endif
{{-- Content Card: Title + Description + Instructions + Tests --}}
{{-- Tags --}}
@if($package->discount_percentage > 0) {{ __('offers_badge') }} @endif @if($package->tests_count > 0) {{ $package->tests_count }} {{ $package->tests_count == 1 ? __('test_count_single') : __('test_count_suffix') }} @endif @if($package->estimated_time) {{ $package->estimated_time }} @endif

{{ $package->translated_name }}

@if($package->translated_description)

{!! $package->translated_description !!}

@elseif($package->translated_short_description)

{{ $package->translated_short_description }}

@endif {{-- Instructions Grid (sample type, fasting, collection) --}} @if($package->sample_type || $package->collection_method || $package->fasting_instructions)
@if($package->sample_type)
{{ __('sample_type') }}
{{ $package->sample_type }}
@endif @if($package->collection_method)
{{ __('collection_method') }}
{{ $package->collection_method }}
@endif @if($package->fasting_instructions || $package->translated_fasting_instructions)
{{ __('fasting_instructions') }}
{{ $package->translated_fasting_instructions ?? $package->fasting_instructions }}
@endif @if($package->estimated_time)
{{ __('results_duration') }}
{{ $package->estimated_time }}
@endif
@endif {{-- Tests Grouped by Category --}} @if($groupedTests->count() > 0)

{{ __('whats_included') }} ({{ $package->tests_count }} {{ $package->tests_count == 1 ? __('test_count_single') : __('test_count_suffix') }})

@foreach($groupedTests as $group) @if($group['category']) {{-- Category with header --}}

{{ $group['category']->translated_name }}

{{ $group['tests']->count() }}
@foreach($group['tests'] as $test)
{{ $test->translated_name }}
@if($test->translated_short_description)
{{ $test->translated_short_description }}
@endif
@endforeach
@else {{-- Uncategorized tests --}}
@if($groupedTests->count() > 1)

{{ __('other_tests') }}

{{ $group['tests']->count() }}
@endif
@foreach($group['tests'] as $test)
{{ $test->translated_name }}
@if($test->translated_short_description)
{{ $test->translated_short_description }}
@endif
@endforeach
@endif @endforeach @elseif($package->features && count($package->features) > 0)

{{ __('whats_included') }}

@foreach($package->features as $feature)
{{ is_array($feature) ? ($feature['feature'] ?? '') : $feature }}
@endforeach
@endif {{-- Additional Features (when package has both tests and features) --}} @if($groupedTests->count() > 0 && $package->features && is_array($package->features) && count($package->features) > 0)

{{ __('additional_features') }}

@foreach($package->features as $feature)
{{ is_array($feature) ? ($feature['feature'] ?? '') : $feature }}
@endforeach
@endif
{{-- Content Card: Accordions --}}

{{ __('additional_info') }}

{{-- Accordion: How it works --}}
{{ __('how_it_works') }}
{{ __('how_it_works_content') }}
{{-- Accordion: Preparation --}}
{{ __('pre_service_instructions') }}
@if($package->translated_preparation_instructions) {!! $package->translated_preparation_instructions !!} @else {{ __('pre_service_default') }} @endif
{{-- Accordion: FAQ --}}
{{ __('faq') }}
{{ __('faq_q1') }} {{ __('faq_a1') }}
{{ __('faq_q2') }} {{ __('faq_a2') }}
{{ __('faq_q3') }} {{ __('faq_a3') }}
{{ __('faq_q4') }} {{ __('faq_a4') }}
{{-- Sidebar --}}
{{-- Related Packages --}} @if($relatedPackages->count() > 0)

{{ __('discover_other_packages') }}

@endif {{-- Mobile Footer Bar --}} {{-- Booking Modal (mobile) --}}