Member Information
Email: {{ $member->email ?? 'N/A' }}
Phone: {{ $member->phone ?? 'N/A' }}
Join Date: {{ $member->join_date->format('d/m/Y') }}
Status:
@if($member->membership_status == 'active')
Active
@elseif($member->membership_status == 'expired')
Expired
@elseif($member->membership_status == 'suspended')
Suspended
@else
Cancelled
@endif
Expiry Date: {{ $member->expiry_date ? $member->expiry_date->format('d/m/Y') : 'N/A' }}
@if($member->gym && $member->gym->attendance_enabled)
Attendance Type:
@if(($member->attendance_type ?? 'manual') == 'biometric')
Biometric Attendance
@if($member->biometric_enrolled)
Enrolled
@else
Not Synced
@endif
@else
Manual Attendance
@endif
@endif
@if($member->gym && $member->gym->attendance_enabled && ($member->attendance_type ?? 'manual') != 'biometric')
Click to connect this member with the biometric device for automatic attendance tracking.
@endif
@php
$activeMembership = $member->memberships()->where('status', 'active')->latest()->first();
@endphp
@if($activeMembership && $activeMembership->plan)
Current Membership Plan
Plan Name: {{ $activeMembership->plan->name }}
Price: Rs {{ number_format($activeMembership->amount_paid, 2) }}
Start Date: {{ $activeMembership->start_date->format('d/m/Y') }}
End Date: {{ $activeMembership->end_date->format('d/m/Y') }}
Duration: {{ $activeMembership->plan->duration_value }} {{ $activeMembership->plan->duration_type }}
Status:
@if($activeMembership->status == 'active')
Active
@elseif($activeMembership->status == 'expired')
Expired
@elseif($activeMembership->status == 'frozen')
Frozen
@else
Cancelled
@endif
@endif
@if($member->memberships->count() > 0)
Membership History
| Plan |
Start Date |
End Date |
Amount |
Status |
@foreach($member->memberships->sortByDesc('start_date') as $membership)
| {{ $membership->plan->name ?? 'N/A' }} |
{{ $membership->start_date->format('d/m/Y') }} |
{{ $membership->end_date->format('d/m/Y') }} |
Rs {{ number_format($membership->amount_paid, 2) }} |
@if($membership->status == 'active')
Active
@elseif($membership->status == 'expired')
Expired
@elseif($membership->status == 'frozen')
Frozen
@else
Cancelled
@endif
|
@endforeach
@endif
@if($member->payments->count() > 0)
All Payments
{{ $member->payments->count() }} Payment(s)
| Invoice # |
Date |
Due Date |
Amount |
Method |
Status |
@foreach($member->payments->sortByDesc(function($payment) {
return $payment->paid_date ?? $payment->due_date ?? $payment->created_at;
}) as $payment)
|
{{ $payment->invoice_number ?? 'N/A' }}
|
@if($payment->paid_date)
{{ $payment->paid_date->format('d/m/Y') }}
@elseif($payment->created_at)
{{ $payment->created_at->format('d/m/Y') }}
@else
N/A
@endif
|
@if($payment->due_date)
{{ $payment->due_date->format('d/m/Y') }}
@else
N/A
@endif
|
Rs {{ number_format($payment->total_amount, 2) }} |
{{ ucfirst(str_replace('_', ' ', $payment->payment_method ?? 'N/A')) }} |
@if($payment->status == 'paid')
Paid
@elseif($payment->status == 'pending')
Pending
@elseif($payment->status == 'failed')
Failed
@else
{{ ucfirst($payment->status) }}
@endif
|
@endforeach
| Total: |
Rs {{ number_format($member->payments->sum('total_amount'), 2) }} |
@else
No payment records found for this member.
@endif
@if($member->attendance->count() > 0)
Total Visits
{{ $member->attendance->count() }}
Last Visit
@php
$lastVisit = $member->attendance->sortByDesc('date')->first();
@endphp
{{ $lastVisit ? $lastVisit->date->format('d/m/Y') : 'N/A' }}
@if($lastVisit && ($lastVisit->check_in_time || $lastVisit->check_out_time))
@if($lastVisit->check_in_time)
Check-In: {{ $lastVisit->formatted_check_in_time }}
@endif
@if($lastVisit->check_out_time)
| Check-Out: {{ $lastVisit->formatted_check_out_time }}
@endif
@endif
All Attendance History
{{ $member->attendance->count() }} Visit(s)
| Date |
Check-In |
Check-Out |
Method |
Status |
@foreach($member->attendance->sortByDesc('date') as $attendance)
{{ $attendance->date->format('d/m/Y') }}
{{ $attendance->date->format('l') }}
|
@if($attendance->check_in_time)
{{ $attendance->formatted_check_in_time }}
@else
N/A
@endif
|
@if($attendance->check_out_time)
{{ $attendance->formatted_check_out_time }}
@else
Not Checked Out
@endif
|
@if($attendance->check_in_method == 'biometric')
Biometric
@elseif($attendance->check_in_method == 'qr_code')
QR Code
@elseif($attendance->check_in_method == 'rfid')
RFID
@else
Manual
@endif
|
@if($attendance->check_out_time)
Complete
@else
Checked In
@endif
|
@endforeach
@else
No attendance records found for this member.
Attendance will be recorded automatically when the member checks in via biometric device or manually.
@endif