@extends('../layout/' . $layout) @section('subhead') Chat History @endsection @section('subcontent') @php $currency = DB::table('systemflag') ->where('name', 'Currency') ->select('value') ->first(); @endphp

Chat History

@if ($totalRecords > 0) PDF CSV @endif
@csrf
@if (!$searchString) @else @endif
@if ($totalRecords > 0)
@php $no = 0; @endphp @foreach ($chatHistory as $chat) @endforeach
# User ASTROLOGER Chat Rate Chat Time Total Min Deduction Chat Status
{{ ($page - 1) * 15 + ++$no }} {{ $chat->userName }}- {{ $chat->contactNo }} {{ $chat->astrologerName }} {{ $chat->chatRate }} {{ date('d-m-Y h:i A', strtotime($chat->updated_at)) ? date('d-m-Y h:i A', strtotime($chat->updated_at)) : '--' }} {{ $chat->totalMin }} @if ($chat->deduction) {{ $currency->value }} {{ $chat->deduction }} @endif {{ $chat->chatStatus }}
Showing {{ $start }} to {{ $end }} of {{ $totalRecords }} entries
@else
noData

No Data Available

@endif @endsection @section('script') @endsection