@extends('layouts.app') @section('title', __('pos.stage_academy.title')) @push('styles') @endpush @section('content')

@if(($mode ?? 'index') === 'activations') {{ __('pos.stage_academy.cards.activations') }} @else {{ __('pos.stage_academy.title') }} @endif

{{ __('common.back') }} @if(($mode ?? 'index') === 'activations') @endif
@if(($mode ?? 'index') === 'index')

{{ __('pos.stage_academy.cards.users') }}

{{ __('pos.stage_academy.cards.users_desc') }}
{{ __('pos.stage_academy.cards.open') }}

{{ __('pos.stage_academy.cards.activations') }}

{{ __('pos.stage_academy.cards.activations_desc') }}
{{ __('pos.stage_academy.cards.open') }}
@else @if(session('success')) @endif @if(session('error')) @endif @if($errors->any())
@endif @if(! $tableExists)

{{ __('pos.stage_academy.no_data') }}

@else
@if($activations->count() === 0)

{{ __('pos.stage_academy.activations.empty') }}

@else
@foreach($activations as $activation)
{{ $activation->user?->name }} {{ $activation->user?->phone }}
{{ __('subscriptions.invoice_number') }}: {{ $activation->invoice_number ?? '-' }} {{ app()->getLocale() == 'ar' ? ($activation->course?->name_ar) : ($activation->course?->name_en) }} {{ number_format((int) $activation->price, 0) }} {{ __('subscriptions.payment_methods.' . $activation->payment_method) }} {{ $activation->created_at?->format('Y-m-d') }} {{ __('subscriptions.sales_employee') }}: {{ $activation->creator?->name ?? 'N/A' }}
@endforeach
{{ $activations->links() }}
@endif
@endif @endif
@endsection @push('scripts') @endpush