@extends('admin.layouts.app') @push('css') @endpush @section('content')

Órdenes MercadoLibre

{{-- Stats Cards --}}

Total

{{ number_format($stats['total']) }}

Nuevas

{{ number_format($stats['new']) }}

Pagadas

{{ number_format($stats['paid']) }}

Enviadas

{{ number_format($stats['shipped']) }}

{{-- Main Card --}}
Listado de Órdenes
Exportar CSV
@csrf
{{-- Filters --}}
@if(request()->hasAny(['estado', 'o_status', 'search'])) Limpiar @endif
{{-- Table --}}
@forelse($orders as $order) @empty @endforelse
Order ID Comprador Publicación Total Status ML Estado Fecha Hora Acciones
{{ $order->order_id }} {{ $order->buyer_nik }} @if($order->buyer_full_name)
{{ $order->buyer_full_name }} @endif
{{ $order->mla_publ ?? '-' }} ${{ number_format($order->o_tot_amou, 2, ',', '.') }} @switch($order->o_status) @case('paid') Pagado @break @case('shipped') Enviado @break @case('delivered') Entregado @break @case('cancelled') Cancelado @break @default {{ $order->o_status }} @endswitch @if($order->estado == 'NEW') Nuevo @else {{ $order->estado }} @endif @if($order->hasImportedOrder())
Importada @endif
{{ $order->o_f_crea ? $order->o_f_crea->format('d/m/Y') : '-' }} {{ $order->o_h_crea ?? '-' }}
No hay órdenes
@if($orders->hasPages())
Mostrando {{ $orders->firstItem() }} a {{ $orders->lastItem() }} de {{ $orders->total() }}
{{ $orders->links() }}
@endif
@endsection @push('js') @endpush