@extends('admin.layouts.inventory') @section('title', 'Projects') @section('content')
@if ($projects->isEmpty())

No projects found for this tenant.

@else @foreach ($projects as $project) @php $status = $project->status ?? '—'; $location = collect([$project->city, $project->state])->filter()->implode(', '); @endphp @endforeach
Customer Service user kW Location Status Action
{{ $project->customer_name }} {{ $project->assignedUser?->name ?? '—' }} {{ $project->kw !== null ? number_format((float) $project->kw, 2) : '—' }} {{ $location !== '' ? $location : '—' }} @php $badgeClass = match ($status) { 'pending_approval' => 'pending_approval', 'completed' => 'completed', 'rejected' => 'cancelled', default => 'active', }; @endphp {{ str($status)->replace('_', ' ')->title() }} @include('admin.inventory.partials.action_icons', [ 'view' => route('admin.inventory.projects.show', $project), ])
@include('admin.inventory.partials.pagination', ['paginator' => $projects]) @endif
@endsection