@extends('admin.layouts.main') @section('content')

Recent Properties

View All
@foreach($recent_properties as $recent_property) @php // Fetch the first visit with status 'Sold' or 'Rented' $buyer = \App\Models\PropertyVisits::where('property_id', $recent_property->id) ->whereIn('status', ['Sold', 'Rented']) ->first(); @endphp @endforeach
Owner Name Property Date Buyer/ Tenant Name Price Status
{{$recent_property->owner ? $recent_property->owner->first_name .' '. $recent_property->owner->last_name : 'Not yet sold'}}
property

{{$recent_property->city}}, {{$recent_property->state}}

{{$recent_property->property_name}}

{{ $recent_property->created_at->format('M d, Y') }} {{$buyer ? $buyer->user->first_name.' '.$buyer->user->last_name : 'Not yet sold'}} @php $amount=null; if($recent_property->property_for=="BUY"){ $amount=$recent_property->amount; }else{ $amount=$recent_property->rent_amount .'/m'; } @endphp

₹ {{$amount}}

@php $status_color="typ-red"; if($recent_property->property_status=="Sold"){ $status_color="typ-green"; }else if($recent_property->property_status=="Rented"){ $status_color="typ-green"; }else if($recent_property->property_status=="Approved"){ $status_color="typ-blue"; } @endphp
{{$recent_property->property_status}}

New Users

View All
@foreach($new_users as $user) @endforeach
First Name Last Name Type of user Date of joining Phone Number Email ID No of Properties End-to-end property Paperwork made easy
{{$user->first_name}} {{$user->last_name}} {{$user->user_type}} {{$user->created_at->format('d-m-y')}} {{$user->phone_number}} {{$user->email}} {{$user->properties->count()}} @if($user->has_end_to_end_service) img-fluid @else NA @endif @if($user->has_paper_work_service) img-fluid @else NA @endif

Recent Messages

View All
@foreach($recent_messages as $recent_message)
profile

{{$recent_message->user->first_name.' '.$recent_message->user->last_name}} {{ucfirst($recent_message->user->user_type)}}

+91 {{$recent_message->user->phone_number}}

{{$recent_message->user->email}}

{{$recent_message->description}}

@endforeach

Recent Maintenance

View All
@foreach($recent_maintanances as $maintanance) @endforeach
Issues Owner Name Date Time Location Urgency Status

{{$maintanance->issue_title}}

{{ Str::limit($maintanance->description, 15, '...') }}

@if($maintanance->property && $maintanance->property->owner) {{$maintanance->property->owner->first_name . ' ' . $maintanance->property->owner->last_name}} @else No Owner Data @endif {{$maintanance->created_at->format('d/m/Y')}} {{$maintanance->created_at->format('h:i A')}} {{$maintanance->location}} {{$maintanance->urgency_level}} @php $status_class='typ-waiting'; if($maintanance->status=="Complete"){ $status_class='typ-complete'; }else if($maintanance->status=="In Progress"){ $status_class='typ-progress'; } @endphp
@endsection