@extends('master') @section('breadcrumb') @stop @section('content')
Comercio: {{ $order->getShop->name }}
@if($order->status == "1") Procesar Orden Rechazar orden @endif @if($order->status == "2") Orden Lista @endif @if($order->status == "3") Orden Enviada @endif
@if($order->payment_status) @if($order->status != "100") @include('orders.payment_status_block') @endif @endif

Usuario

@if(is_null($order->getUser->avatar)) @else @endif

Nombre: {{ $order->getUser->name }}

E-mail: {{ $order->getUser->email }}

Teléfono: {{ $order->getUser->phone }}

Ordenes entregadas: {{ $order->getUser->getOrders->where('status', '5')->count() }}

Ordenes rechazadas: {{ $order->getUser->getOrders->where('status', '100')->count() }}

Ver perfil del usuario

@if($order->status != "100") @if($order->otype == "0")

Repartidor

@if($order->status < 4) {!! Form::open(['url' => '/order/'.$order->id.'/delivery']) !!} {!! Form::submit('Asignar', ['class' => 'btn btn-success btn-sm mtop16']) !!} {!! Form::close() !!} @endif @if(!is_null($order->delivery_man_id))
@if(is_null($order->getDeliveryMan->avatar)) @else @endif

Nombre: {{ $order->getDeliveryMan->name }}

Teléfono: {{ $order->getDeliveryMan->phone }}

Ordenes entregadas: {{ $order->getDeliveryMan->getOrdersDelivery->where('status', '5')->count() }}

@endif
@endif @endif

Actividad

  • Requerida: {{ $order->request_at }}
  • Repartidor asignado: {{ $order->assigned_delivery_man_at }}
  • Procesando: {{ $order->processing_at }}
  • Orden lista: {{ $order->ready_to_pick_up }}
  • Enviada: {{ $order->send_at }}
  • Entregada: {{ $order->delivery_at }}

Detalle de la orden {{ $order->onumber }} | Estado: {{ order_status($order->status) }}

@foreach($order->getItemsProcessed as $item) @endforeach @if($order->otype == "0" || $order->otype == "2") @endif @if($order->coupon_id) @endif
Producto Precio Extras Total
{{ $item->label }} @if($item->options != null || count($item->getProduct->getExtras) > 0)
@if($item->options)

Opciones:

@foreach(json_decode($item->options) as $key => $option)
{!! $key !!} @if(count($option) > 0) @foreach($option as $op) {{ $op }} @endforeach @endif
@endforeach
@endif @if(count($item->getExtras) > 0)

Extras Agregados:

@foreach($item->getExtras as $extadd)
{{ $extadd->label }} {{ number($extadd->price) }}
@endforeach
@endif
@endif
@if($item->discount > '0') {{ number($item->original_price) }} - @endif {{ number($item->price) }} {{ number($item->extras_amount) }} {{ number($item->itotal) }}
Subtotal: {{ number($order->subtotal) }}
Delivery: {{ number($order->delivery_price) }}
Propina: {{ number($order->tip_amount) }}
Cupón ({{ $order->getCoupon->name }}): {{ number($order->coupon_value) }}
Total: {{ number($order->ototal) }}
@if($order->user_msg)

Mensaje del usuario

{!! $order->user_msg !!}
@endif
@include('orders.payment_info_block')
@stop