@extends('admin.main') @section('content')

Dashboard

{{--
--}}
{{--
@csrf
--}}
From Entry Data
{{--
--}}
{{-- --}} {{-- --}} {{-- --}} @php $s_no = 1; @endphp @if(!empty($form)) @foreach ($form as $item ) {{-- --}} {{-- --}} {{-- --}} @php $s_no++; @endphp @endforeach @endif
S.no Name Gardian Name Gender SchoolCity AreaAge View By Doctor View By Psychologist View By NutritionistPhoneGr No. MR No.Entered ByDuration Created At Action
{{$s_no}} {{-- {{$item->id}} --}} {{-- {{$item->name}} --}} {{-- {{$item->name}} --}} {{$item->name}} {{$item->lname}} {{$item->gender}} {{$item->school}} - {{$item->enterby}} {{$item->city}} {{$item->area}} {{$item->age}} @if ($item->doc_id != null || $item->doc_id !=0) @foreach ($User as $Us) @php echo ($Us->id == $item->doc_id) ? $Us->fullname : ''; @endphp @endforeach @else None @endif @if ($item->psychiatrist_id != null || $item->psychiatrist_id !=0) @foreach ($User as $Us) @php echo ($Us->id == $item->psychiatrist_id) ? $Us->fullname : ''; @endphp @endforeach @else None @endif @if ($item->nutritionist_id != null || $item->nutritionist_id !=0) @foreach ($User as $Us) @php echo ($Us->id == $item->nutritionist_id) ? $Us->fullname : ''; @endphp @endforeach @else None @endif {{$item->phone}} {{$item->grno}} {{\Carbon\Carbon::parse($item->created_at)->year}}{{$item->id}} {{$item->enterby}} {{str_replace(":"," Min ",$item->duration)}} Sec {{ \Carbon\Carbon::parse($item->created_at)->addHours(5)->toDateTimeString() }} @php $user = auth()->guard('admin')->user(); @endphp @if ($item->id >=14 && $user->role == '1') @elseif($item->id >= 14 && $user->role == '2' && $user->id == auth()->id()) @else @endif
@endsection