@extends('layouts.app') @section('title', __('Card List')) @section('page-title', __('Cards')) @section('content')

{{ __('Card List') }}

🖨 {{ app()->getLocale() === 'bn' ? 'āĻŦā§āϝāĻžāϚ āĻĒā§āϰāĻŋāĻ¨ā§āϟ' : 'Batch Print' }}
{{-- Filters --}}
{{ app()->getLocale() === 'bn' ? 'āϰāĻŋāϏ⧇āϟ' : 'Reset' }}
{{-- Table --}}
@forelse($cards as $card) @empty @endforelse
{{ __('Card Number') }} {{ __('Head of Family') }} {{ __('Family Code') }} {{ __('Status') }} {{ __('Issued Date') }} {{ __('Actions') }}
{{ $card->card_number }} {{ $card->family?->head_name_bn }} {{ $card->family?->family_id_code }} @php $c = match($card->status) { 'active','delivered' => 'green', 'pending_print' => 'yellow', 'printed','dispatched' => 'blue', 'suspended','lost' => 'red', default => 'gray' }; @endphp {{ ucfirst(str_replace('_',' ',$card->status)) }} {{ $card->issued_date?->format('d/m/Y') ?? '—' }}
{{ __('No results found') }}
@if($cards->hasPages())
{{ $cards->links() }}
@endif
@endsection