@extends('clients.base') @section('action-content')

Client KYC / Membership Records

@foreach($clients as $client) @php $primaryAccount = $client->accounts->first(); @endphp {{-- STATUS --}} {{-- ACTIONS --}} @endforeach
# Full Name Client Account Number Account Type Gender Phone Ghana Card Bank Passport Photo / Ghana Card Status Action
{{ $loop->iteration }} {{ $client->title_label }} {{ $client->surname }} {{ $client->first_name }} {{ $client->other_names }} {{ $client->account_number}} @forelse($client->accounts as $account) {{ str_replace('_', ' ', $account->account_type) }} @empty No Account @endforelse {{ $client->gender }} {{ $client->phone }} {{ $client->ghana_card_no }} {{ $client->bank_name }}
Client Photo

Photo

@if($client->ghana_card_copy) Ghana Card

Ghana Card

@else

No Card

@endif
@if($primaryAccount && $primaryAccount->is_active) Active @else Inactive @endif {{-- Edit --}} {{-- Show ONLY to Admin & Manager --}} @auth @if(in_array(auth()->user()->role, ['admin','manager'])) {{-- Activate / Deactivate --}} @if($primaryAccount) @if($primaryAccount->is_active) @else @endif @endif {{-- Delete --}} @endif @endauth
@endsection @section('scripts') @endsection