@extends('Templates.Dashboard') @section('content')

PEDIDO N° {{ $order->id }} - {{ $order->client->client_name }}

@include('Dashboard.Alerts.Success') @include('Dashboard.Alerts.Info') @include('Dashboard.Alerts.Question') @include('Dashboard.Alerts.Warning') @include('Dashboard.Alerts.Danger')
INFORMACION DEL PEDIDO
@if ($order->seller_status == 'Aprobado' && in_array($order->wallet_status, ['Pendiente', 'Parcialmente Aprobado']) && in_array(Auth::user()->title, ['SUPER ADMINISTRADOR', 'ADMINISTRADOR', 'CARTERA'])) @else @endif @if ($order->seller_status == 'Aprobado' && in_array($order->wallet_status, ['Pendiente', 'Parcialmente Aprobado']) && in_array(Auth::user()->title, ['SUPER ADMINISTRADOR', 'ADMINISTRADOR', 'CARTERA'])) @else @endif @if ($order->seller_status == 'Aprobado' && in_array($order->wallet_status, ['Pendiente', 'Parcialmente Aprobado']) && in_array(Auth::user()->title, ['SUPER ADMINISTRADOR', 'ADMINISTRADOR', 'CARTERA'])) @else @endif
NIT: {{ $order->client->client_number_document }}-{{ $order->client->client_branch_code }} FECHA: {{ Carbon::parse($order->created_at)->format('Y-m-d H:i:s') }} TIPO DESPACHO: {{ $order->dispatch_type }}
CLIENTE: {{ $order->client->client_name }} CIERRE: {{ $order->seller_date }} FECHA DESPACHO: {{ $order->dispatch_date }}
CIUDAD: {{ $order->client->departament }} - {{ $order->client->city }} DIRECCION: {{ $order->client->client_branch_address }} ESTADO VENDEDOR: @switch($order->seller_status) @case('Pendiente') Pendiente @break @case('Aprobado') Aprobado @break @case('Cancelado') Cancelado @break @default Pendiente @endswitch
ZONA: {{ $order->client->zone }} TELEFONO: {{ $order->client->client_number_phone }} ESTADO CARTERA: @switch($order->wallet_status) @case('Pendiente') Pendiente @break @case('Cancelado') Cancelado @break @case('Suspendido') Suspendido @break @case('En mora') En mora @break @case('Parcialmente Aprobado') Parcialmente Aprobado @break @case('Aprobado') Aprobado @break @case('Autorizado') Autorizado @break @default Pendiente @endswitch
CORREO: {{ $order->client->email }} TELEFONO: {{ $order->client->client_branch_number_phone }} ESTADO DESPACHO: @switch($order->dispatch_status) @case('Pendiente') Pendiente @break @case('Cancelado') Cancelado @break @case('Parcialmente Aprobado') Parcialmente Aprobado @break @case('Aprobado') Aprobado @break @case('Parcialmente Despachado') Parcialmente Despachado @break @case('Despachado') Despachado @break @default Pendiente @endswitch
OBSERVACION VENDEDOR: {{ $order->seller_observation }} VEN. OFC - DCO: {{ $order->seller_dispatch_official . ' % - ' . $order->seller_dispatch_document . ' %' }} VENDEDOR: {{ strtoupper($order->seller_user->name . ' ' . $order->seller_user->last_name) }}
OBSERVACION CARTERA:
{{ $order->wallet_observation }}CAR. OFC - DCO:
{{ is_null($order->wallet_dispatch_official) || is_null($order->wallet_dispatch_document) ? '-' : $order->wallet_dispatch_official . ' % - ' . $order->wallet_dispatch_document . ' %' }} CARTERA: {{ is_null($order->wallet_user) ? '-' : strtoupper($order->wallet_user->name . ' ' . $order->wallet_user->last_name) }}
DETALLES DEL PEDIDO
@include('Dashboard.OrderDetails.Create') @include('Dashboard.OrderDetails.Edit')
@endsection @section('script') @endsection