@extends('admin.layouts.app') @section('title', 'All Projects') @section('breadcrumb')
  • Projects
  • @endsection @section('heading', 'All Projects') @section('subheading', 'Manage and view all real estate projects across your platform.') @section('actions') Add Project @endsection @section('content') @if (session('success'))
    {{ session('success') }}
    @endif {{-- Stats --}}

    {{ number_format($total) }}

    Total Projects

    {{ number_format($active) }}

    Published

    {{ number_format($upcoming) }}

    Pre-Launch

    {{ number_format($completed) }}

    Completed

    {{-- Search & Filters --}}
    Reset
    {{-- Table --}}
    @forelse($projects as $project) @empty @endforelse
    Project Name Location Total Units Price Range RERA Status Date Actions

    {{ $project->title }}

    {{ $project->builder_name ?? '—' }}

    {{ $project->city ? $project->city . ($project->state ? ', ' . $project->state : '') : '—' }} {{ $project->total_units ? number_format($project->total_units) : '—' }} {{ $project->price_range_label }} {{ $project->rera_registered ? 'Registered' : 'Pending' }} @php $ls = $project->listing_status; @endphp {{ $ls ? str_replace('_', ' ', ucfirst($ls)) : '—' }} {{ $project->created_at->format('d M Y') }}
    @csrf @method('DELETE')
    No projects yet. Add one.
    @if ($projects->hasPages())

    Showing {{ $projects->firstItem() ?? 0 }} to {{ $projects->lastItem() ?? 0 }} of {{ $projects->total() }} results

    {{ $projects->links() }}
    @endif
    @endsection