@extends('adminlte::page') @section('title', 'Contact us') @section('content_header')

Contact us

@stop @section('content')
@csrf Filter
@foreach ($store as $contact) @endforeach
Reason Name Email Mobile number Message Added at User time Action
@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 ?? 'Null'; $words = explode(' ', $message); $shortMessage = implode(' ', array_slice($words, 0, 30)); @endphp {{ $shortMessage }} @if(count($words) > 30)... Read More @endif {{ \Carbon\Carbon::parse($contact->created_at)->format('d/m/Y h:i A') }} @if ($contact->user_time) {{ \Carbon\Carbon::parse($contact->user_time)->format('g:i A') }} @endif Delete
@stop