@extends('admin.layout') @section('content')
{{ __('Messages') }}
@includeIf('admin.partials.languages')
@if (count($messages) == 0)

{{ __('NO MESSAGE FOUND') . '!' }}

@else
@foreach ($messages as $message) @php $listing_content = App\Models\Listing\ListingContent::where([ ['listing_id', $message->listing_id], ['language_id', $language->id], ])->first(); @endphp @endforeach
{{ __('Listing Title') }} {{ __('Name') }} {{ __('Email ID') }} {{ __('Phone') }} {{ __('Actions') }}
@if (!empty($listing_content)) {{ strlen($listing_content->title) > 40 ? mb_substr($listing_content->title, 0, 40, 'utf-8') . '...' : $listing_content->title }} @endif {{ $message->name }} {{ $message->email }} {{ $message->phone }}
@csrf
@endif
@include('admin.message.message') @endsection