@extends('adminlte::page') @section('title', 'Contact us') @section('content_header')
| Serial No | Reason | Name | Mobile number | Message | Added at | User time | Source URL | Total Requests | Verify | Flag | Send Mail | Action | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $no }} | @if(isset($contact->reason->name) && !empty($contact->reason->name)) {{ $contact->reason->name }} @else N/A @endif | {{$contact->first_name }} {{$contact->last_name }} | {{$contact->email }} | +{{$contact->country_code }} {{$contact->mobile_no }} | @php $message = $contact->message ?? ''; $words = explode(' ', $message); $shortMessage = implode(' ', array_slice($words, 0, 10)); @endphp | {{ \Carbon\Carbon::parse($contact->created_at)->format('d/m/Y h:i A') }} | @if ($contact->user_time) @php try { $dt = \Carbon\Carbon::createFromFormat('n/j/Y, g:i:s A', $contact->user_time); } catch (\Exception $e) { $dt = \Carbon\Carbon::parse($contact->user_time); } @endphp {{ $dt->format('h:i A') }} @endif | @php $url = $contact->current_url; $cleanPath = $url; $baseUrls = [ 'https://visament.com', 'http://172.105.63.118/visament_working_dir/public', ]; foreach ($baseUrls as $base) { if (Str::startsWith($url, $base)) { $cleanPath = Str::replaceFirst($base, '', $url); break; } } @endphp{{ $cleanPath }} | appointments) > 1) style="width:150px;word-break:break-all;font-size:14px;cursor:pointer;" onclick="show_bw({{$k}},'{{$contact->email}}');" @else style="width:150px;word-break:break-all;font-size:14px;" @endif >@if(count($contact->appointments) > 1) {{ count($contact->appointments) }} @else {{ count($contact->appointments) }} @endif | is_verified == 1 ? 'checked' : '' }}> | is_verified == 2 ? 'checked' : '' }}> |
|
{{--Delete | --}} @php $no++; $k++; @endphp