@extends('user.layouts.app') @section('title', 'My Chat History') @section('content')

Chat History

@if($chats->count() > 0)
@foreach($chats as $chat) @endforeach
Chat ID Astrologer Date Duration Cost Status Action
#{{ $chat->id }}
@if($chat->astrologer->astrologerDetail && $chat->astrologer->astrologerDetail->profile_pic) @else
{{ substr($chat->astrologer->name, 0, 2) }}
@endif
{{ $chat->astrologer->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) }}
View @if($chat->status === 'ended' && !$chat->review) Review @elseif($chat->review) Reviewed @endif
{{ $chats->links() }}
@else

No Chats Yet

Start a conversation with an astrologer to see your history here.

Find Astrologers
@endif
@endsection