@extends('layouts.admin') @section('content')
{{-- Header --}}

{{ __('Warehouse Overview') }}

{{ __('Manage your warehouses, including main and branch warehouses') }}

{{-- Stats Cards --}}

{{ __('Total Warehouses') }}

{{ $stats['total'] }}

{{ __('Main Warehouses') }}

{{ $stats['main'] }}

{{ __('Branch Warehouses') }}

{{ $stats['branch'] }}

{{ __('Low Stock Alerts') }}

{{ $stats['low_stock'] }}

{{-- Table Card --}}
{{-- Filters --}} {{-- Table --}}
@forelse($warehouses as $warehouse) @empty @endforelse
{{ __('Warehouse Info') }} {{ __('Type') }} {{ __('Products / Stock') }} {{ __('Status') }} {{ __('Actions') }}
{{ $warehouse->name }} @if($warehouse->address) {{ $warehouse->address }} @endif
@if($warehouse->type === 'main')
{{ __('Main') }}
@else
{{ __('Branch') }}
@endif
{{ $warehouse->products_count ?? 0 }} {{ __('Products') }}
{{ (int)($warehouse->total_stock ?? 0) }} {{ __('Stock') }}
@if($warehouse->is_active) {{ __('Active') }} @else {{ __('Disabled') }} @endif
@if($warehouse->is_active) @else @endif

{{ __('No warehouses found') }}

{{-- Pagination --}}
{{ $warehouses->links('vendor.pagination.luxury') }}
{{-- Create/Edit Modal --}}

@csrf
{{-- Confirm Modals --}}
@endsection