@extends('layouts.app') @section('title', 'Edit Enquiry') @section('content')
@if ($errors->any())
Please fix the following errors:
@endif

Edit Enquiry for {{ $enquiry->full_name }} of [ {{ str_replace('_', ' ', $enquiry->type) }} ]

Update your enquiry information as needed

1
Member Details
2
Enquiry Type
3
Documents
4
Review
@csrf @method('PUT')

Member Personal Information

TSH
TSH
TSH

Enquiry Type & Information

Loan Application Details
TSH
Share Enquiry Details
TSH
Retirement Details
Deduction Details
TSH
TSH
Refund Details
TSH
Withdraw Savings Details
TSH @php $savingsWithdrawal = $enquiry->withdrawals->where('type', 'savings')->first() @endphp
Withdraw Deposit Details
TSH @php $depositWithdrawal = $enquiry->withdrawals->where('type', 'deposit')->first() @endphp
Membership Termination Details
@php $membershipChange = $enquiry->membershipChanges->where('action', 'unjoin')->first() @endphp
URA Mobile Details
URA Mobile service registration - no additional details required.
Sick Leave Details
Condolence Details
condolence && $enquiry->condolence->gender === 'male') ? 'checked' : '' }} required>
condolence && $enquiry->condolence->gender === 'female') ? 'checked' : '' }} required>
Work Injury Details
Please enter up to 100 words.
Residential Disaster Details
Join Membership Details
@php $joinMembership = $enquiry->membershipChanges->where('action', 'join')->first() @endphp

Document Management

@if($enquiry->folios && $enquiry->folios->count() > 0)
@foreach($enquiry->folios as $folio)
Current Document

This is the document currently attached to this enquiry

{{ basename($folio->file_path) }}
Uploaded: {{ $folio->created_at->format('M d, Y H:i') }} @if(file_exists(public_path($folio->file_path))) {{ number_format(filesize(public_path($folio->file_path)) / 1024 / 1024, 2) }} MB {{ strtoupper(pathinfo($folio->file_path, PATHINFO_EXTENSION)) }} Document @else File details not available @endif
Previously Uploaded Document Preview (Document uploaded during enquiry creation)
@if(strtolower(pathinfo($folio->file_path, PATHINFO_EXTENSION)) === 'pdf') @else

Preview not available for this file type

Open in new tab
@endif
This is the document you uploaded when creating this enquiry. You can replace it by uploading a new document below.
@endforeach

OR
@endif

@if($enquiry->file_path) Drop new file here or browse to replace @else Drop file here or browse @endif

PDF, DOC, DOCX, JPG, PNG (Max: 10MB)

@if($enquiry->file_path)
Debug: File Path: {{ $enquiry->file_path }}
Asset URL: {{ asset($enquiry->file_path) }}
File Exists: {{ file_exists(public_path($enquiry->file_path)) ? 'YES' : 'NO' }}
Current Document
{{ basename($enquiry->file_path) }}
@if(file_exists(public_path($enquiry->file_path))) {{ number_format(filesize(public_path($enquiry->file_path)) / 1024 / 1024, 2) }} MB {{ strtoupper(pathinfo($enquiry->file_path, PATHINFO_EXTENSION)) }} Document @else File details not available @endif
Document Preview (Upload new document above to replace)
@endif

Review Your Changes

Complete previous steps to review your changes

@endsection