@extends('components.app-layout') @section('title', 'Edit Member') @section('subtitle', 'Update member information') @section('content') @if(session('success'))

{{ session('success') }}

@endif @if($errors->any())

Please correct the following errors:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Edit Member: {{ $member->full_name ?? 'Member Name' }}

Update member information and details

@csrf @method('PUT')

Personal Information

@if($member->photo_path ?? false) {{ $member->full_name }} @else @endif
@error('first_name')

{{ $message }}

@enderror
@error('last_name')

{{ $message }}

@enderror

Contact Information

@error('email')

{{ $message }}

@enderror

Membership Information

@if($member->yearGroup)
{{ $member->yearGroup->name }} @if($member->yearGroup->abbreviation) {{ $member->yearGroup->abbreviation }} @endif
@if($member->age) Age: {{ $member->age }} @endif

{{ $member->yearGroup->description }}

@else
Not Assigned
Year group will be assigned when date of birth is provided.
@endif
@error('membership_type')

{{ $message }}

@enderror
Cancel

Password Management

Manage member login credentials and access

@if(session('generated_password'))

{{ session('success') }}

New Password: {{ session('generated_password') }}

Please share this password securely with the member.

@endif @if(session('temp_password'))

{{ session('success') }}

Temporary Password: {{ session('temp_password') }}

Member should change this password after first login.

@endif

Login Status

Login Access: @if($member->password) Enabled @else Disabled @endif
Member ID: {{ $member->member_id }}
Email: {{ $member->email ?: 'Not set' }}

Quick Actions

@if($member->password)
@csrf
@csrf
@else
@csrf
@endif
@if($member->password)

Set Custom Password

@csrf

Minimum 8 characters

@endif
@endsection