@extends('components.app-layout') @section('title', 'Inventory Dashboard') @php $dynamicSubtitle = 'Manage ' . ($organizationSettings['name'] ?? 'Presbyterian Church of Ghana') . ' inventory and stock levels'; @endphp @section('subtitle', $dynamicSubtitle) @section('content')

Inventory Management

Track and manage your church inventory, monitor stock levels, and generate comprehensive reports.

Stock Management
Real-time Tracking
Smart Alerts

Total Items

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

Active inventory

Low Stock

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

Need attention

Categories

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

Item groups

Stock Value

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

Total worth

Quick Actions

Manage your inventory efficiently

Low Stock Alerts

View All
@if($lowStockItems->count() > 0)
@foreach($lowStockItems as $item)

{{ $item->name }}

{{ $item->category->name ?? 'No Category' }}

{{ $item->current_stock }} left

Min: {{ $item->minimum_stock }}

@endforeach
@else

All items are well stocked!

@endif

Recent Activity

View Reports
@if($recentTransactions->count() > 0)
@foreach($recentTransactions as $transaction)

{{ $transaction->item->name ?? 'Unknown Item' }}

{{ $transaction->type_display }}

{{ $transaction->quantity > 0 ? '+' : '' }}{{ $transaction->quantity }}

{{ $transaction->created_at->diffForHumans() }}

@endforeach
@else

No recent activity

@endif
@endsection