@extends('layouts.frontend') @section('title') @lang('frontend.home') @endsection @section('page_level_css') @endsection @section('header') @endsection @section('content') @if(count($alerts) > 0)
@foreach ($alerts as $alert)
@endforeach
@endif @if(Auth::user()->type == 1)
@if($center_type == 'RC')
@endif @if($center_type == 'HCP')
@endif
@endif @if(session('invitationSent')) @endif @if(session('invitationError')) @endif @foreach ($sessions as $session)

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

@if(Auth::user()->type == 2)
@if($session->state==1) @endif @if($session->state==0)
@lang('frontend.accept')
@lang('frontend.deny')
@endif @endif @if(Auth::user()->type == 1 and date('YmdHis') < $session->end_date and $session->state != -1)
@if($center_type == 'HCP') @lang('frontend.edit') @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($patients as $patient) @if($patient->session_id == $session->id)
  • {{ $patient->name }}
  • @endif @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 @endsection