@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; $currency = \App\Models\Setting::currencyLabel($locale); @endphp @section('title', $isRtl ? 'بطاقات الدخول' : 'Access Cards') @section('content')

{{ $isRtl ? 'بطاقات الدخول' : 'Access Cards' }}

{{ $isRtl ? 'هذه الصفحة قديمة — يفضّل استخدام صفحة بطاقات الدخول الجديدة' : 'Legacy page — use the newer Access Cards module' }}

{{ $isRtl ? 'فتح إدارة البطاقات' : 'Open Access Cards' }}
@forelse($cards as $card) @empty @endforelse
{{ $isRtl ? 'العضو' : 'Member' }} {{ $isRtl ? 'رقم البطاقة' : 'Card #' }} {{ $isRtl ? 'النوع' : 'Type' }} {{ $isRtl ? 'الحالة' : 'Status' }} {{ $isRtl ? 'التأمين' : 'Deposit' }} {{ $isRtl ? 'الانتهاء' : 'Expiry' }}

{{ $card->member?->full_name ?? '—' }}

{{ $card->member?->member_id ?? '' }}

{{ $card->card_number }} {{ strtoupper($card->card_type) }} {{ strtoupper($card->status) }} {{ number_format((float)$card->deposit_amount, 2) }} {{ $currency }} {{ $card->expiry_date ? $card->expiry_date->format('Y-m-d') : '—' }}
{{ $isRtl ? 'لا توجد بطاقات' : 'No cards found' }}
@if($cards->hasPages())
{{ $cards->links() }}
@endif
@endsection