@extends('layouts.app') @section('title', 'Detalles del Almacén') @section('content')

{{ $warehouse->name }} @if($warehouse->is_main) Principal @endif

{{ $warehouse->code }} - {{ $warehouse->full_address }}

Volver Editar
Total Productos
{{ $stats['total_products'] }}
Valor Total
${{ number_format($stats['total_value'], 2) }}
Stock Bajo
{{ $stats['low_stock_products'] }}
Sin Stock
{{ $stats['out_of_stock_products'] }}
Información del Almacén
Información Básica

Código: {{ $warehouse->code }}

Nombre: {{ $warehouse->name }}

Estado: {!! $warehouse->status_formatted !!}

@if($warehouse->description)

Descripción: {{ $warehouse->description }}

@endif
Capacidad

Capacidad Total: {{ $warehouse->capacity_formatted }}

Capacidad Utilizada: {{ $warehouse->used_capacity_formatted }}

Capacidad Disponible: {{ $warehouse->available_capacity_formatted }}

{{ number_format($warehouse->capacity_used_percentage, 1) }}%
@if($warehouse->contact_info)
Información de Contacto

{{ $warehouse->contact_info }}

@endif @if($warehouse->notes)
Notas

{{ $warehouse->notes }}

@endif
Ubicaciones ({{ $warehouse->locations->count() }})
@if($warehouse->locations->count() > 0)
@foreach($warehouse->locations as $location) @endforeach
Código Nombre Tipo Estado Capacidad Productos Acciones
{{ $location->code }} {{ $location->name }} {{ $location->type_formatted }} {!! $location->status_formatted !!} {{ $location->used_capacity_formatted }} / {{ $location->capacity_formatted }} {{ $location->current_products }}
@else

No hay ubicaciones en este almacén

Crear Primera Ubicación
@endif
@if($lowStockProducts->count() > 0)
Stock Bajo
@foreach($lowStockProducts as $stock)
{{ $stock->product->name }}
{{ $stock->product->code }}
{{ $stock->quantity }}
@endforeach
@endif @if($outOfStockProducts->count() > 0)
Sin Stock
@foreach($outOfStockProducts as $stock)
{{ $stock->product->name }}
{{ $stock->product->code }}
0
@endforeach
@endif @if($topLocations->count() > 0)
Ubicaciones Más Utilizadas
@foreach($topLocations as $location)
{{ $location->name }}
{{ $location->code }}
{{ $location->stocks_count }}
@endforeach
@endif
@endsection