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

Orden #{{ $order->order_id }}

{{-- Left Column --}}
{{-- Order Info --}}
Información de la Orden
Order ID {{ $order->order_id }}
Publicación {{ $order->mla_publ ?? '-' }}
Status ML @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
Estado Interno {{ $order->estado }}
Fecha Creación {{ $order->o_f_crea ? $order->o_f_crea->format('d/m/Y') : '-' }}
Hora {{ $order->o_h_crea ?? '-' }}
Fecha Cierre {{ $order->o_f_close ? $order->o_f_close->format('d/m/Y') : '-' }}
Última Actualización {{ $order->o_f_l_upda ? $order->o_f_l_upda->format('d/m/Y') : '-' }}
{{-- Item & Amounts --}}
Ítem y Montos
SKU {{ $order->i_sku ?? '-' }}
Cantidad {{ $order->oi_quanti ?? '-' }}
Precio Unitario ${{ number_format($order->oi_unit_p ?? 0, 2, ',', '.') }}
Tipo Listado {{ $order->oi_l_ty_id ?? '-' }}
Total Orden ${{ number_format($order->o_tot_amou ?? 0, 2, ',', '.') }}
Envío ${{ number_format($order->mla_envio ?? 0, 2, ',', '.') }}
Fee MP ${{ number_format($order->mpg_fee ?? 0, 2, ',', '.') }}
Neto ${{ number_format(($order->mla_total ?? 0) - ($order->mpg_fee ?? 0), 2, ',', '.') }}
{{-- Buyer Info --}}
Comprador
Nickname {{ $order->buyer_nik }}
Nombre {{ $order->buyer_full_name ?: '-' }}
Email {{ $order->buyer_mail ?? '-' }}
Teléfono {{ $order->mla_telef ?? '-' }}
Domicilio {{ $order->mla_domici ?? '-' }}
Localidad {{ $order->mla_locali ?? '-' }}
Provincia {{ $order->mla_provin ?? '-' }}
Puntaje {{ $order->mla_puntaj ?? '-' }}
{{-- Shipping --}}
Envío
Shipping ID {{ $order->s_shipp_id ?? '-' }}
Status Envío {{ $order->s_status ?? '-' }}
Tracking {{ $order->mla_tracki ?? '-' }}
Estado Envío {{ $order->shp_estado ?? '-' }}
{{-- Right Column --}}
{{-- Link Client --}}
Vincular Cliente
@csrf
{{-- Link Document --}}
Vincular Documento
@csrf
{{-- Current Documents --}} @if($order->co_remi || $order->co_reci || $order->co_docu)
Documentos Vinculados
    @if($order->co_remi && $order->nu_remi)
  • Remito: {{ $order->co_remi }}-{{ $order->nu_remi }}
  • @endif @if($order->co_reci && $order->nu_reci)
  • Recibo: {{ $order->co_reci }}-{{ $order->nu_reci }}
  • @endif @if($order->co_docu && $order->nu_docu)
  • Factura: {{ $order->co_docu }}-{{ $order->nu_docu }}
  • @endif
@endif
{{-- Observations --}}
Detalle / Observaciones
@if($order->mla_deta)

Detalle ML: {{ $order->mla_deta }}

@endif @if($order->observaciones)

Observaciones: {{ $order->observaciones }}

@endif @if(!$order->mla_deta && !$order->observaciones)

Sin observaciones

@endif
{{-- Import as Internal Order --}}
Importar como Orden Interna
@if($order->hasImportedOrder())
Importada como orden interna #{{ $order->order_id_interno }}
@else

Crea una orden interna del e-commerce a partir de esta orden de MercadoLibre. Se vinculará automáticamente el comprador y los datos de envío.

@csrf
@endif
@endsection @push('js') @endpush