@extends('layouts.app') @section('title', 'Envíos | Veltrix v2') @section('topbar_actions') @if (has_permission('envios.crear')) Nuevo envío @endif @endsection @push('styles') @endpush @section('content') @if (session('success'))
| Nº Envío | Destinatario | Ciudad | Transportadora | Origen | Rótulos | Estado | Acciones |
|---|---|---|---|---|---|---|---|
|
{{ $envio->numero_envio }}
{{ $envio->created_at->format('d/m/Y') }}
|
{{-- Destinatario --}}
{{ strtoupper(mb_substr($envio->destinatario_nombre, 0, 2)) }}
{{ $envio->destinatario_nombre }}
@if ($envio->destinatario_telefono)
{{ $envio->destinatario_telefono }}
@endif
|
{{-- Ciudad --}}
@if ($envio->destinatario_ciudad) {{ $envio->destinatario_ciudad }} @else Sin ciudad @endif | {{-- Transportadora --}}
@if ($envio->transportadora)
{{ $envio->transportadora }}
@if ($envio->numero_guia)
{{ $envio->numero_guia }}
@endif
@else
Por asignar
@endif
|
{{-- Origen --}}
@if ($envio->venta_id) POS @elseif ($envio->pedido_manychat_id) WA @else Manual @endif | {{-- Rótulos --}}@php $cnt = $envio->rotulos_count ?? 0 @endphp @if ($cnt) {{ $cnt }} @else — @endif | {{-- Estado --}}{{ $envio->estadoLabel() }} | {{-- Acciones --}}|
@if ($q || $estado) Sin resultados @else Aún no hay envíos @endif@if ($q || $estado) Prueba con otros términos o limpia los filtros. @else Los envíos se crean automáticamente al completar ventas POS, o puedes crear uno manualmente. @endif @if ($q || $estado) Limpiar filtros @elseif (has_permission('envios.crear')) Crear envío @endif |
|||||||