@extends('layouts.default') @php /** @var \App\Models\RefugeeFamily $refugee */ @endphp {{-- Page Title --}} @section('title') Refugee Check-In @parent @stop {{-- Content --}} @section('content')

Check-In @if (url()->previous() == route('refugee.show', $refugee->id)) @else Cancel @endif


{{ $refugee->id }} {{ $refugee->full_name }}

@include('refugee.checkin_member_list', ['member' => new \App\Models\RefugeeMember(), 'i' => '', 'mode' => 'add'])
{{--Delete Member Modal--}} @include('components.remove_confirmation')
@csrf

Confirm your family members' diaper sizes. {{--Add Member--}} Add

    @foreach ($refugee->members as $i => $member) @include('refugee.checkin_member_list') @endforeach
{{--Last Additional Notes--}} @php($last_checkin_record_note = $refugee->last_checkin_record->note ?? '') @php($refugee_note = $refugee->note ?? '') @if (!empty($last_checkin_record_note) || !empty($refugee_note))

Last Additional Notes

@if (!empty($last_checkin_record_note)) {!! nl2br(e($last_checkin_record_note)) !!} @elseif (!empty($refugee_note)) {!! nl2br(e($refugee_note)) !!} @endif
@endif {{--Additional Notes--}}

Additional Notes

@include('components.form.textarea_row', [ 'name' => 'note', 'label' => '', 'label_class' => 'col-md-0 d-none', 'input_class' => 'col-md-12', 'optional' => true, 'rows' => 3, ]) {{--Submit--}}
{{--Add Member Modal--}}
@endsection