@extends('admin.layouts.master') @section('title','Showings') @section('content')

Table

@csrf
@csrf @method('DELETE')
@foreach($showings as $showing) @php $property = \App\Property::find($showing->property_id); $parent = $property?->property_for === 'Rent' ? 'Rent' : ($property ? 'Sale' : null); @endphp @endforeach
# Agent ID Property ID Method Name Email Mobile Message Date Time Date2 Time2 Created At Action
{{$loop->iteration}} {{$showing->agent_id}} @if($property && $parent) {{ $showing->property_id }} @else {{ $showing->property_id }} @endif {{$showing->method}}@if($showing->method == 'virtual')
{{ $showing->methodType }}
{{ $showing->methodTypeData }}@endif
{{$showing->name}} {{$showing->email}} {{$showing->mobile}} {{$showing->message}} {{$showing->date}} {{$showing->time}} {{$showing->date2}} {{$showing->time2}} {{$showing->created_at->format('d-m-Y')}}
@method('DELETE') @csrf
@if($showing->status == 'Not Read') @else

Read

@endif
{{$showings->links()}}
@endsection @section('js') @endsection