الباقات

{{-- تبويبات الأدوار --}} @php $tabs = [ 'trainee' => 'باقات المتدرب', 'company' => 'باقات الشركات', 'donor' => 'باقات المانحين', ]; @endphp
@foreach($tabs as $key => $label) {{ $label }} @endforeach
@if(!empty($errorMsg))
{{ $errorMsg }}
@endif {{-- شبكة الباقات --}}
@forelse($plans as $p) @php $name = $p['name'] ?? ''; $hours = (int)($p['hours'] ?? 0); $price = (float)($p['price'] ?? 0); $months = $p['valid_months'] ?? null; $features = $p['features'] ?? []; $isFree = $price <= 1; // حرية ضبط شرط المجاني @endphp
{{ $name }}
{{-- أيقونة ساعة بسيطة --}}
عدد {{ $hours }} ساعة تدريبية
@if($isFree)
مجاني
@else
﷼{{ rtrim(rtrim(number_format($price, 2, '.', ''), '0'), '.') }}
@endif
{{ $months === 12 ? 'سنة /' : ($months ? $months.' شهر /' : '') }}
    @if(is_array($features) && count($features)) @foreach($features as $f)
  • {{ $f['feature'] ?? '' }}
  • @endforeach @else
  • لا توجد مميزات مذكورة
  • @endif
@if($isFree) @else @endif
يمكن تغيير الباقة لاحقًا
@empty
لا توجد باقات متاحة لهذا التبويب
جرّب تبويبًا آخر أعلاه.
@endforelse