@extends('layouts/contentNavbarLayout') @section('title', 'Add Deposit') @section('vendor-style') @endsection @section('content')

Add Deposit

Back to Deposit Details
@if ($errors->any()) @endif
Deposit Details
@csrf
@if($selectedStudent) {{-- From Pending list: show selected student as read-only (single field) --}}
@else {{-- From top "Add Deposit" button: show student dropdown --}}
@error('student_id')
{{ $message }}
@enderror @if($students->isEmpty())

No students with pending deposit. Assign a bed first from Student Details.

@endif
@endif
@error('from_date')
{{ $message }}
@enderror
@error('to_date')
{{ $message }}
@enderror
@error('actual_deposit_date')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror @php $requiredAmount = hostel_deposit_amount(); @endphp

Required: ₹{{ number_format($requiredAmount, 2) }} · Balance: — Advance: —

@error('payment_mode')
{{ $message }}
@enderror

Close
@endsection @section('page-script') @endsection