@extends('admin.layouts.master') @section('content')

Patient List

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
@php $pageLenth = (isset($_GET['page_length']) ? $_GET['page_length'] : 10); @endphp
@foreach($patients as $key=>$row) @if($row->user) @php $status = 0; if(!$row->user->email_verified_at) $status = 'Not Verified'; else $status = 'Verified'; @endphp @endif @endforeach
Id Full Name Country Referal Therapist Chatroom Status Messages Sent Signup date Subscription Last Active Status Coupon Used Avg. Match Time Signup Type Owner Type Action
{{$row->user_id}} {{$row->first_name." ". $row->last_name}} {{isset($row->country->name) ? $row->country->name : ""}} {{$row->user->referal}} {{$row->therapist_name}} {{$row->chatroom_status}} {{$row->messages_sent}} {{$row->user->created_at}} {{($row->plan_expiry ? date("d M Y",strtotime($row->plan_expiry)) : '')}} {{$row->user->last_activity_at}} {{$status}} {{--(count($row->usedbycustomers) ? ' '.count($row->usedbycustomers).' Customers' : 'None')--}} {!!(isset($row->usedbycustomers) && count($row->usedbycustomers) ? 'View Details' : 'None')!!} {{$row->average_match_time}} {{$row->user->social_type ? $row->user->social_type : "email"}} {{$row->owner_type ? $row->owner_type : ""}} @if($row->user->status == 3) @elseif($row->user->status <= 2) @endif
{{ method_field('DELETE') }} {{ csrf_field() }}
@if($row->chatroom_id) @endif
@endsection @section('script') @endsection