@php $finalPrice = $package->sale_price ?? $package->price; $hasDiscount = $package->sale_price && $package->sale_price < $package->price; $testsCount = $package->tests_count ?? $package->tests?->count() ?? 0; @endphp
{{-- Badge --}} @if($showBadge && $package->badge_text)
{{ $package->badge_text }}
@endif @if($showBadge && $package->is_featured)
مميز
@endif {{-- Image --}}
@if($package->image) {{ $package->name }} @else
@endif @if($showTestsCount)
{{ $testsCount }} تحليل
@endif
{{-- Content --}}

{{ $package->name }}

@if($showDescription)

{{ $package->short_description ?? Str::limit(strip_tags($package->description), 100) }}

@endif {{-- Features list --}} @if($showFeatures && $package->features && count($package->features) > 0)
@foreach(array_slice($package->features, 0, 3) as $feature)
{{ is_array($feature) ? ($feature['feature'] ?? '') : $feature }}
@endforeach @if(count($package->features) > 3) +{{ count($package->features) - 3 }} تحليل إضافي @endif
@endif {{-- Price & CTA --}}
{{ number_format($finalPrice, 0) }} @if($showOldPrice && $hasDiscount) {{ number_format($package->price, 0) }} ﷼ @endif
تفاصيل الباقة