@extends('layouts.customer') @section('page-title') Sessions @endsection @section('content')

Sessions

@forelse ($sessions as $item) {{-- --}} {{-- --}} {{----}} {{-- @if($item->status == "completed" && $item->id != $item["reviews"]["cust_to_trainer_id"]) --}} {{-- --}} @if($item["status"] == "completed") @php $check = App\Models\Performance::where('session_id',$item->id)->where('customer_id', $item->customer_id)->first(); @endphp @if($check != null) @else @endif @elseif($item["status"] == "upcoming" || $item["status"] == "re-scheduled") @else @endif @empty @endforelse @csrf
No. Name Session Date Session Time Time Zone Goals Message Action
{{ $loop->iteration }} {{ $item->customer->first_name}}{{ date('d-m-Y', strtotime(@$item->customer_timezone_date)) }}{{ date('h:i A', strtotime(@$item->customer_timezone_time)) }}{{ date('d-m-y', strtotime(@$item->trainer_date)) }} {{ date('h:i A', strtotime(@$item->trainer_time)) }} {{ @$item->timeZone->abbreviation ?? '---'}} {{ $item["sessions"] != null ? $item["sessions"]["goals"] : $item->session_type }} {{ $item["sessions"] != null ? $item["sessions"]["message"] : $item->notes }} {{@$item->abbreviation}} View Performance Add Review Add Review Cancel Session Cancelled

No Sessions Available..!!

@endsection @section('js') @endsection