@extends('layouts.frontend') @section('title') @lang('frontend.all_sessions') @endsection @section('vendor_css') @endsection @section('page_level_css') @endsection @section('content')
{{ $sessions->links() }}
@if(($state!='1'))
@endif @if(\request('from_date') and \request('to_date'))

عرض الجلسات من تاريخ {{\request('from_date')}} الى تاريخ {{\request('to_date')}}

@endif @foreach ($sessions as $session)

@lang('frontend.session') {{$session->id}}

@if(Auth::user()->type == 2)
@if($session->state==1 and date('YmdHis') < $session->end_date and $center_type == 'HCP')
الغاء
@endif @endif @if($session->state != -1 and date('YmdHis') < $session->end_date and $center_type == 'HCP')
@lang('frontend.edit')
@endif @if($session->state != -1 and date('YmdHis') < $session->end_date and $center_type == 'RC' and Auth::user()->type == 1 )
@if(count($session->getPatients()) > 0) تعديل @else اضافة مرضى @endif
@endif {{date('l d F Y - g:i a',strtotime($session->date_time))}} {{ (date('YmdHis')>date('YmdHis',strtotime($session->date_time)) and date('YmdHis') < $session->end_date and $session->state==1) ? ' - '.__('frontend.running_now') : '' }}

@lang('frontend.patients')

    @foreach($session->getPatients() as $patient)
  • {{ $patient->name }}
  • @endforeach

متلقى الخدمة الطبية

  • {{$session->RCCenter()->name ?? '' }}

@lang('frontend.doctor')

  • {{ $session->RCDoctor()->name ?? '' }}

@lang('frontend.duration')

  • {{date('H:i',strtotime($session->duration)) }} @lang('frontend.hours')

مقدم الخدمة الطبية

  • {{$session->HCPCenter()->name }}

@lang('frontend.doctor')

  • {{ $session->HCPDoctor()->name ?? '' }}

@lang('frontend.specialty')

  • {{ $session->hcp_clinic->special->name ?? 'غير محدد بعد' }}
@endforeach
{{ $sessions->links() }}
@endsection @section('page_vendor_js') @endsection @section('page_level_js') @endsection