@extends('unit-admin.layout') @section('title', 'Members') @section('page_title', 'Members') @section('content') {{-- FILTER BAR --}}
Clear
{{-- MEMBERS TABLE --}}
Unit Members ({{ $members->count() }})
{{-- ADD MEMBER BUTTON --}}
@if($members->isEmpty())

No members found

@else
@foreach($members as $m) @endforeach
Member Phone Organization Designation Membership Status Joined Actions
@if($m->photo) @else
{{ strtoupper(substr($m->user->name, 0, 1)) }}
@endif
{{ $m->user->name }}
{{ $m->user->email }}
{{ $m->user->phone }} {{ Str::limit($m->organization, 20) }} {{ Str::limit($m->designation, 18) }} @if($m->membership_type === 'LIFE') LIFE @else ANNUAL @endif @if($m->status === 'PENDING') PENDING @elseif($m->status === 'APPROVED') APPROVED @elseif($m->status === 'ACTIVE') ACTIVE @elseif($m->status === 'REJECTED') REJECTED @else {{ $m->status }} @endif {{ $m->created_at->format('d M Y') }}
{{-- VIEW --}} {{-- APPROVE --}} @if(in_array($m->status, ['PENDING', 'REJECTED']))
@csrf
@endif {{-- REJECT --}} @if(in_array($m->status, ['PENDING', 'APPROVED', 'ACTIVE']))
@csrf
@endif
@endif
{{-- ══ ADD MEMBER MODAL ══ --}}
Add New Member
@csrf {{-- PERSONAL INFO --}}
Personal Info
{{-- PROFESSIONAL INFO --}}
Professional Info
{{-- ADDRESS --}}
Address
{{-- MEMBERSHIP PLAN --}}
Membership Plan
{{-- Unit, district, state are auto-assigned from unit admin's unit --}}
Member will be automatically assigned to {{ $myUnit->name }} unit and created with PENDING status.
{{-- MEMBER DETAIL MODAL --}}
Member Details
@endsection @section('scripts') @endsection