@php function stockLevel($total, $current) { $perc = ($current / $total) * 100; if ($perc <= 20) { return 'text-danger'; // Critical (red) } elseif ($perc <= 50) { return 'text-warning'; // Warning (yellow/orange) } elseif ($perc <= 100) { return 'text-success'; // Normal (blue) } else { return 'text-primary'; // Good (green) } } @endphp
@can('write_customer') {{ __('service.button.create') }} @endcan
@include('layouts.alert')
@if (auth()->user()->work_department_id == 1) @endif @forelse ($lots as $index => $lot) @empty @endforelse
# Producto N° Lote Almacén Cantidad registro Stock Caducidad Período
{{ ++$index }}
{{ $lot->product->name ?? 'Sin producto' }}
{{ $lot->product->presentation->name ?? 'Sin presentación' }}
{{ $lot->registration_number }}
{{ $lot->warehouse->name ?? 'Sin almacén' }}
{{ number_format($lot->amount, 2) }}
{{ $lot->product->metric->value ?? '' }}
@if ($lot->managed)
{{ number_format($lot->managed->current_amount, 2) }}
{{ $lot->product->metric->value ?? '' }}
@else
{{ number_format(0, 2) }}
{{ $lot->product->metric->value ?? '' }}
@endif
@if ($lot->expiration_date)
{{ date('d/m/Y', strtotime($lot->expiration_date)) }}
@if ($lot->isExpired()) CADUCADO @else VIGENTE @endif
@else Sin fecha @endif
{{ date('d/m/Y', strtotime($lot->start_date)) }}
No hay lotes para mostrar

No se encontraron lotes en el sistema.

@if ($lots->hasPages())
Mostrando {{ $lots->firstItem() ?? 0 }} a {{ $lots->lastItem() ?? 0 }} de {{ $lots->total() }} lotes
{{ $lots->links('pagination::bootstrap-5') }}
@endif @if ($lots->isEmpty() && request()->has('search')) @endif