@extends('admin.layouts.app') @section('page_content')
@foreach($contacts_details as $key => $contact) @endforeach
S.no. Type Category Product Model Email Phone Message Submitted Date Action
{{$key+1}} @if($contact->type == 1) Contact Us @elseif($contact->type == 2) Product @elseif($contact->type == 3) Missed @endif @if($contact->type == 2) @php($category = $cnt->category_data($contact->category_id)) @if(isset($category->id)) {{$category->name}} @endif @endif @if($contact->type == 2) @php($product = $cnt->getProductModels($contact->category_id, $contact->product_id)) @if(isset($product->id)) {{$product->model}} @endif @endif {{$contact->email}} {{$contact->phone}} {!!Str::limit($contact->message,20)!!} {{ \Carbon\Carbon::parse($contact->created_at)->format('d-m-Y')}}
@endsection