@extends('layouts.app') @section('title', __('Lista Packaging')) @push('styles') @endpush @section('content')

{{ __('Lista Packaging') }}

{{ $registros->total() }} {{ __('registros') }} @if(request()->hasAny([ 'idMuestra','idProveedor','idPedido','idOrigen','buscar', 'f_id','f_muestra','f_proveedor','f_pedido','f_marca','f_categoria', 'f_version','f_diseno_ok','f_talla','f_top','f_filling','f_bottom', 'f_origen','f_fecha','f_fecha_embarque','f_brand_label', 'f_washing_label','f_packaging_exterior','f_estado_pack_ext', 'f_lavado','f_lejia','f_planchado','f_lavado_seco','f_secadora', 'f_comentario' ])) {{ __('filtrado') }} @endif

{{ __('Exportar') }}
@if(session('success'))
{{ session('success') }}
@endif {{-- Panel nuevo --}} {{-- Filtros --}}
@if(request()->hasAny(['idMuestra','idProveedor','idPedido','idOrigen','buscar'])) @endif
{{-- Tabla --}}
@if(request('idMuestra'))@endif @if(request('idProveedor'))@endif @if(request('idPedido'))@endif @if(request('idOrigen'))@endif @if(request('buscar'))@endif @forelse($registros as $r) {{-- Fila edición inline --}} @empty @endforelse
Id {{ __('Muestra') }} {{ __('Proveedor') }} {{ __('Pedido') }} {{ __('Marca') }} {{ __('Cat. Muestra') }} {{ __('Versión Muestra') }} {{ __('Diseño OK') }} {{ __('Talla') }} {{ __('Top') }} {{ __('Filling') }} {{ __('Bottom') }} {{ __('Origen') }} {{ __('F. Envío') }} {{ __('F. Embarque') }} {{ __('Brand label') }} {{ __('Washing label') }} {{ __('Pack. exterior') }} {{ __('Edo. Pack. ext.') }} {{ __('Lavado') }} {{ __('Lejía') }} {{ __('Planchado') }} {{ __('Lav. Seco') }} {{ __('Secadora') }} {{ __('Comentarios') }}
#{{ $r->Id }} {{ $r->muestra->Nombre ?? '—' }} {{ $r->proveedor->Proveedor ?? '—' }} {{ $r->pedido->Pedidos ?? '—' }} {{ $r->marca->TipoArticulo ?? '—' }} {{ $r->muestra->Categoria->Categorias ?? '—' }} {{ $r->muestra->Version->Version ?? '—' }} @if($r->diseno_ok === 'SI') {{ $r->diseno_ok }} @elseif($r->diseno_ok === 'NO') {{ $r->diseno_ok }} @else @endif @if($r->talla) {{ $r->talla->Talla }} @else — @endif {{ $r->top->Composicion ?? '—' }} {{ $r->filling->Composicion ?? '—' }} {{ $r->bottom->Composicion ?? '—' }} {{ $r->origen->Pais ?? '—' }} {{ $r->fecha ? $r->fecha->format('d/m/Y') : '—' }} {{ $r->fechaEmbarque ? $r->fechaEmbarque->format('d/m/Y') : '—' }} @if($r->brandLabel) @php $cls = str_contains(strtolower($r->brandLabel->estado),'aprobado') ? 'pack-aprobado' : (str_contains(strtolower($r->brandLabel->estado),'rechaz') ? 'pack-rechazado' : 'pack-pendiente'); @endphp {{ $r->brandLabel->estado }} @else @endif @if($r->washingLabel) {{ $r->washingLabel->estado }} @else @endif {{ $r->packagingExterior->tipo ?? '—' }} @if($r->estadoTipoPackExt) {{ $r->estadoTipoPackExt->estado }} @else @endif {{ $r->iconoLavado->valor ?? '—' }} {{ $r->iconoLejia->valor ?? '—' }} {{ $r->iconoPlanchado->valor ?? '—' }} {{ $r->iconoLavadoSeco->valor ?? '—' }} {{ $r->iconoSecadora->valor ?? '—' }} {{ $r->comentario ? \Illuminate\Support\Str::limit($r->comentario, 30) : '—' }}
@csrf @method('DELETE')
{{ __('No se encontraron registros') }}
{{-- Paginación --}} @if($registros->hasPages())
{{ __('Mostrando') }} {{ $registros->firstItem() }}–{{ $registros->lastItem() }} {{ __('de') }} {{ $registros->total() }}
{{ $registros->withQueryString()->links('pagination::bootstrap-5') }}
@endif @endsection