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

{{ $isRtl ? 'إصدار بطاقة دخول' : 'Issue Access Card' }}

{{ $isRtl ? 'إصدار بطاقة جديدة لعضو' : 'Issue a new access card for a member' }}

@if($errors->any())

{{ $isRtl ? 'يرجى تصحيح الأخطاء التالية:' : 'Please fix the following errors:' }}

@endif @if(($members ?? collect())->count() === 0)

{{ $isRtl ? 'لا يوجد أعضاء متاحون' : 'No members available' }}

{{ $isRtl ? 'كل الأعضاء لديهم بطاقة نشطة حالياً، أو لا يوجد أعضاء نشطون.' : 'All members already have an active card, or there are no active members.' }}

@else
@csrf
@php $types = [ 'magnetic' => ['label_ar' => 'مغناطيسية', 'label_en' => 'Magnetic', 'icon' => 'magnet'], 'rfid' => ['label_ar' => 'RFID', 'label_en' => 'RFID', 'icon' => 'radio'], 'nfc' => ['label_ar' => 'NFC', 'label_en' => 'NFC', 'icon' => 'smartphone'], 'qr' => ['label_ar' => 'QR', 'label_en' => 'QR', 'icon' => 'qr-code'], ]; @endphp @foreach($types as $key => $t) @endforeach
{{ $currency }}

{{ $isRtl ? 'يُسجَّل المبلغ كدفعة "أخرى" عند الإصدار.' : 'Recorded as an “other” payment on issue.' }}

{{ $isRtl ? 'اتركه فارغاً إذا لا يوجد تاريخ انتهاء.' : 'Leave empty if no expiry date.' }}

{{ $isRtl ? 'إلغاء' : 'Cancel' }}
@endif
@endsection