@php $pagination = $this->getPaginatedMembershipsData(); $rows = $pagination['data']; $total = $pagination['total']; $from = $pagination['from']; $to = $pagination['to']; $currentPage = $pagination['currentPage']; $lastPage = $pagination['lastPage']; @endphp

{{ __('Memberships') }} ({{ $total }} {{ __('records') }})

{{ __('Export Excel') }} {{ __('Export PDF') }}
@forelse($rows as $row) @empty @endforelse
{{ __('Type') }} {{ __('Name') }} {{ __('Email') }} {{ __('Place') }} {{ __('Member Number') }} {{ __('Status') }} {{ __('Status Detail') }} {{ __('Start Date') }} {{ __('End Date') }}
{{ $row['type'] }} {{ $row['name'] }} {{ $row['email'] }} {{ $row['place'] }} {{ $row['member_number'] }} @php $statusColors = [ 'valid' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'upcoming' => 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200', 'expired' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', 'none' => 'bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300', ]; $colorClass = $statusColors[$row['status_key']] ?? $statusColors['none']; @endphp {{ $row['status'] }} {{ $row['status_detail'] }} {{ $row['start_date'] }} {{ $row['end_date'] }}
{{ __('No memberships found matching the criteria.') }}
@if($total > 0)
{{ __('Showing') }} {{ $from }} {{ __('to') }} {{ $to }} {{ __('of') }} {{ $total }} {{ __('results') }}
{{ __('Page') }} {{ $currentPage }} {{ __('of') }} {{ $lastPage }}
@endif