{{-- --}} @yield('title', 'Tracking') | Domicilios @yield('style')
    @foreach($actualStates as $state)
  • {{isset($state['time']) ? $state['time'] : '--:--'}}

    {{$state['name']}}

  • @endforeach
@if($delivery->getCustomer)
@if(!empty($delivery->getCustomer->photo) && Storage::disk('public')->exists('profiles/'.$delivery->getCustomer->photo)) @else @endif
{{$delivery->getCustomer->name . " " . $delivery->getCustomer->last_name}}
Cel: {{$delivery->getCustomer->cellphone}}
@else

No asignado

@endif
@if($delivery->getDeliveryMan)
@if(!empty($delivery->getDeliveryMan->getData->photo) && Storage::disk('public')->exists('domiciliary/photo/'.$delivery->getDeliveryMan->getData->photo)) @else @endif
{{$delivery->getDeliveryMan->getData->name . " " . $delivery->getDeliveryMan->getData->last_name}}
Cel: {{$delivery->getDeliveryMan->getData->cellphone}} @if(Auth::check()) @if(Auth::user()->id_profile_vp == 1) @endif @endif
@else

No asignado @if(Auth::check()) @if(Auth::user()->id_profile_vp == 1) @endif @endif

@endif
@foreach($delivery->addresses as $address)
{{$address->address}}
¿Qué hacer aquí?
@if(is_null(json_decode($address->observation)))

{{$address->observation}}

@else @foreach(json_decode($address->observation) as $product)

{{$product->nombreProducto}} (x{{$product->cantidad}}) {{number_format($product->valorTotal, 2)}}

@endforeach @endif
@endforeach
@if (property_exists($jsonExtra,"extra") && $jsonExtra->extra!="null" && $jsonExtra->extra!=null )
{{-- --}}
Informacion extra
{{ $jsonExtra->extra }}
@endif @if (property_exists($jsonExtra,"tipoEnvio") && $jsonExtra->tipoEnvio!="null" && $jsonExtra->tipoEnvio!=null )
{{-- --}}
Tipo de Domiciliarios
{{$jsonExtra->tipoEnvio->nombre ?? ""}}
@endif
@if($delivery->distance > 0)

Distancia total: {{number_format($delivery->distance, 2)}}Km

@endif @if(is_null(json_decode($delivery->total_price)))

Total: ${{number_format($delivery->total_price)}}

@else

Impuestos: ${{number_format(json_decode($delivery->total_price)->tax, 2)}}

Propina: ${{number_format(json_decode($delivery->total_price)->tip, 2)}}

Domicilio: ${{number_format(json_decode($delivery->total_price)->delivery, 2)}}

Subtotal: ${{number_format(json_decode($delivery->total_price)->subTotal, 2)}}

Total: ${{number_format(json_decode($delivery->total_price)->total, 2)}}

@endif