@extends('layouts.app') @section('title', 'Reporte de Almacenes') @section('content')
Almacenes y ubicaciones del sistema
{{ $printData['company_info']['address'] ?? 'Dirección de la empresa' }}
Tel: {{ $printData['company_info']['phone'] ?? 'Teléfono' }} | Email: {{ $printData['company_info']['email'] ?? 'email@empresa.com' }}
Fecha de Generación: {{ now()->format('d/m/Y H:i:s') }}
Generado por: {{ Auth::user()->name }}
Total de Registros: {{ $data->count() }}
Papel: {{ $printConfig->paper_size_formatted }}
Orientación: {{ $printConfig->orientation_formatted }}
Fuente: {{ $printConfig->font_config['family'] ?? 'Arial' }} {{ $printConfig->font_config['size'] ?? 12 }}pt
| ID | Nombre | Código | Dirección | Teléfono | Capacidad | Usado | Ubicaciones | Estado | Principal | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $warehouse->id }} |
{{ $warehouse->name }}
@if($warehouse->description)
{{ Str::limit($warehouse->description, 50) }} @endif |
{{ $warehouse->code }}
|
{{ $warehouse->address ?? 'Sin dirección' }} | {{ $warehouse->phone ?? 'Sin teléfono' }} | {{ $warehouse->email ?? 'Sin email' }} |
{{ number_format($warehouse->capacity ?? 0, 2) }}
m² |
@php
$usedCapacity = $warehouse->used_capacity ?? 0;
$totalCapacity = $warehouse->capacity ?? 1;
$percentage = $totalCapacity > 0 ? ($usedCapacity / $totalCapacity) * 100 : 0;
$capacityClass = $percentage > 80 ? 'text-danger' : ($percentage > 60 ? 'text-warning' : 'text-success');
@endphp
{{ number_format($usedCapacity, 2) }}
{{ number_format($percentage, 1) }}% |
{{ $warehouse->locations->count() }}
ubicaciones |
@php $isActive = $warehouse->is_active ?? true; $badgeClass = $isActive ? 'bg-success' : 'bg-danger'; $statusText = $isActive ? 'Activo' : 'Inactivo'; @endphp {{ $statusText }} | @if($warehouse->is_main ?? false) Principal @else - @endif |
|
No hay almacenes registrados |
||||||||||
| Código | Nombre | Zona | Pasillo | Estante | Capacidad | Estado |
|---|---|---|---|---|---|---|
{{ $location->code }} |
{{ $location->name }} | {{ $location->zone ?? '-' }} | {{ $location->aisle ?? '-' }} | {{ $location->rack ?? '-' }} | {{ number_format($location->capacity ?? 0, 2) }} m² | @php $isActive = $location->is_active ?? true; $badgeClass = $isActive ? 'bg-success' : 'bg-danger'; $statusText = $isActive ? 'Activo' : 'Inactivo'; @endphp {{ $statusText }} |