@extends('admin.layouts.app') @section('title', 'Project Units') @section('breadcrumb')
  • Projects
  • Project Units
  • @endsection @section('heading', 'Project Units') @section('subheading', 'Manage unit inventory across all projects.') @section('actions') Add Project @endsection @section('content')
    @forelse($projects as $project) @empty @endforelse
    # Project Location Total Units Unit Types Price Range Actions
    {{ $project->id }}

    {{ $project->title }}

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

    {{ $project->city ? $project->city . ($project->state ? ', ' . $project->state : '') : '—' }} {{ $project->total_units ? number_format($project->total_units) : '—' }} @if($project->units->isNotEmpty()) {{ $project->units->pluck('unit_type')->unique()->implode(', ') }} @else — @endif {{ $project->price_range_label }} Edit
    No projects yet. Add one.
    @if ($projects->hasPages())

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

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