@extends('adminlte::page') @section('content_header')

የህጻናት መዝገብ

@can('register children') አዲስ ፋይል መዝግብ @endcan @stop @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Reset @can('manage file search requests') @if($children->total() === 0 && ($children->hasPages() || request()->anyFilled(['child_full_name','file_number','birthdate','mother_full_name','father_full_name','country_id','region','city']))) Not found — log a search request @endif @endcan
@foreach($children as $child) @endforeach
ID Photo Full Name Sex Birthdate File Number Approval Status Actions
{{ $child->id }} @if($child->photo) @else No photo @endif {{ $child->child_full_name }} {{ ucfirst($child->sex) }} {{ $child->birthdate }} {{ $child->file_number }} {{ ucfirst($child->approval_status) }} View @can('edit children') @if(auth()->user()->hasRole('admin') || $child->approval_status === 'rejected') Edit @endif @endcan @if($child->approval_status == 'pending'|| $child->approval_status == 'rejected')
@csrf @method('DELETE')
@endif
{{ $children->links() }} @endsection