Cantidad Actual: {{ $datos['cantidad_actual'] }} [{{ $datos['unidad'] }}] @if ($datos['cantidad_actual'] <= 0) @endif
@if ($datos['ultimo_egreso'])Último Egreso: {{ $datos['ultimo_egreso']['cantidad'] }} [{{ $datos['unidad'] }}] ({{ \Carbon\Carbon::parse($datos['ultimo_egreso']['fecha'])->format('d-m-Y') }})
@elseÚltimo Egreso: No disponible
@endif| Código | Item | Destino | Vol. Sol. [L] | Des. Entregado | Solicitante | Autorizante | Tipo | Estado | Fecha | Acciones |
|---|---|---|---|---|---|---|---|---|---|---|
| DES-{{ $mov->id }} | {{ $mov->itemSolucion->codigo }} - {{ $mov->itemSolucion->nombre }} | @if ($mov->tipo == 1) Almacen Materia Prima @else {{ $mov->DestinoSolucion->descripcion }} @endif | {{ $mov->cantidad_mezcla / 1 }} | @if ($mov->tipo != 1) @if ($mov->itemSolucion->codigo == 'L-4' || $mov->itemSolucion->codigo == 'L-6' || $mov->DestinoSolucion->id == 13) {{ $mov->cantidad * 1000 }} @else {{ $mov->cantidad / 1 }} @endif @endif @php $unidad = match ($mov->itemSolucion->codigo) { 'L-4' => '[ml]', 'L-6' => '[gr]', default => '[' . $mov->itemSolucion->unidad . ']', }; @endphp @if ($mov->tipo != 1) @if ($mov->destinoSolucion->id == 13) [ml] @else {{ $unidad }} @endif @endif {{-- [{{ $mov->itemSolucion->unidad }}] --}} | {{ substr($mov->user->nombre, 0, 1) . substr(explode(' ', $mov->user->nombre)[1] ?? '', 0, 1) . substr($mov->user->apellido, 0, 1) . substr(explode(' ', $mov->user->apellido)[1] ?? '', 0, 1) }} | @if ($mov->usuarioAutorizante) {{ substr($mov->usuarioAutorizante->nombre, 0, 1) . substr(explode(' ', $mov->usuarioAutorizante->nombre)[1] ?? '', 0, 1) . substr($mov->usuarioAutorizante->apellido, 0, 1) . substr(explode(' ', $mov->usuarioAutorizante->apellido)[1] ?? '', 0, 1) }} @endif |
@if ($mov->tipo == 1)
{{-- Entrada --}}
@else
{{-- Salida --}}
@endif
|
{{ $mov->estado }} | {{ \Carbon\Carbon::parse($mov->tiempo)->format('d-m-Y H:m') }} | @if ($mov->tipo == 0) @if (auth()->user()->role->rolModuloPermisos->where('modulo_id', 33)->where('permiso_id', 3)->isNotEmpty()) @if ($mov->estado != 'Entregado') @if ($mov->estado != 'Autorizado' && now()->diffInMinutes($mov->created_at) < 1440) @endif @if ($mov->estado != 'Denegado' && now()->diffInMinutes($mov->created_at) < 1440) @endif @endif @endif @if ($mov->estado == 'Autorizado') @if (auth()->user()->role->rolModuloPermisos->where('modulo_id', 33)->where('permiso_id', 3)->isNotEmpty()) @endif @endif @if (auth()->user()->role->rolModuloPermisos->where('modulo_id', 33)->where('permiso_id', 4)->isNotEmpty() || (now()->diffInMinutes($mov->created_at) < 10 && auth()->user()->id == $mov->user->id && $mov->estado == 'Solicitado')) @endif @endif |
Descargar Reporte de salidas de sustancias
{{-- --}} @error('fechaInicio') {{ $message }} @enderror @error('fechaFin') {{ $message }} @enderror