@extends('Admin.layout') @section('content')
Edit Staff
{{-- Staff Edit History --}}
@csrf

Personal Details

@if (!empty($staff->profile_image)) @else Click to Upload (Max file size: 5 MB, PNG, JPG only) @endif
{{--
--}}


Family Details

Details of Family Members

    @php $families = old('family', $familyMembers->toArray() ?? []); @endphp @forelse ($families as $index => $family)
  1. @error("family.$index.name") {{ $message }} @enderror
  2. @empty
  3. @endforelse

Details of Non Family Members

    @php $nonfamilies = old('nonfamily', $nonFamilyMembers->toArray() ?? []); @endphp @forelse ($nonfamilies as $index => $nonfamily)
  1. @empty {{-- ✅ IMPORTANT FIX HERE --}}
  2. @endforelse
Employment Details
@error('designation')
{{ $message }}
@enderror
Other Proofs
{{-- ================= AADHAR CARD ================= --}}
@error('aadhar_card_file')
{{ $message }}
@enderror @if ($staff->aadhar_card_file)
@php $ext = pathinfo($staff->aadhar_card_file, PATHINFO_EXTENSION); @endphp @if (in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'webp'])) @else View PDF @endif
@endif
{{-- ================= AGREEMENT ================= --}}
@error('agreement_file')
{{ $message }}
@enderror @if ($staff->agreement_file)
@php $ext = pathinfo($staff->agreement_file, PATHINFO_EXTENSION); @endphp @if (in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'webp'])) @else View PDF @endif
@endif
Bank Details
Download Agreement
@endsection