@extends('astrologer.layouts.app') @section('title', 'My Chats') @section('content')

My Chats

History of all your consultations

@if($chats->count() > 0)
@foreach($chats as $chat) @endforeach
Chat ID Client Date Duration Earnings Status Action
#{{ $chat->id }}
@if($chat->user->avatar) @else
{{ substr($chat->user->name, 0, 2) }}
@endif
{{ $chat->user->name }}
{{ $chat->created_at->format('d M, Y h:i A') }} @if($chat->end_time) {{ $chat->start_time->diff($chat->end_time)->format('%I:%S') }} mins @else - @endif ₹{{ number_format($chat->total_cost, 2) }} {{ ucfirst($chat->status) }}
@if($chat->review) @else No Review @endif
{{ $chats->links() }}
@else

No Chats Yet

Chats with clients will appear here.

@endif
@endsection