@extends('layouts.admin') @section('title', 'Equipment') @section('page-title', 'Equipment') @section('page-subtitle', 'Manage church equipment and assets') @section('content')
Add Equipment

Total Items

{{ $stats['total'] ?? 0 }}

Available

{{ $stats['available'] ?? 0 }}

In Maintenance

{{ $stats['maintenance'] ?? 0 }}

Total Value

GH₵{{ number_format($stats['total_value'] ?? 0, 2) }}

@forelse($equipment as $item) @empty @endforelse
Name Category Status Location Value Next Maintenance Actions

{{ $item->name }}

{{ $item->serial_number ?? '' }}

{{ ucfirst($item->category) }} {{ ucfirst(str_replace('_', ' ', $item->status)) }} {{ $item->location ?? '-' }} GH₵{{ number_format($item->value ?? 0, 2) }} @if($item->next_maintenance_date) {{ \Carbon\Carbon::parse($item->next_maintenance_date)->format('M d, Y') }} @if(\Carbon\Carbon::parse($item->next_maintenance_date)->isPast()) @endif @else - @endif
@if($item->status !== 'maintenance') @endif

No equipment found

@if($equipment->hasPages())
{{ $equipment->withQueryString()->links() }}
@endif
@endsection