@extends('admin.main') @section('content')
| S.no | Name | Gardian Name | Gender | School | {{--City | Area | --}}Age | View By Doctor | View By Psychologist | View By Nutritionist | {{--Phone | --}}Gr No. | MR No. | {{--Entered By | --}}Duration | 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 |