@extends('adminlte::page') @section('title', 'Pedidos - ' . config('app.name') ) @section('content_header')

Pedidos

@stop @section('content') @php use Illuminate\Support\Str; @endphp
@include('layouts.errors-and-messages')

Pedido {{ $order->id }}

{{$customer->name}}
{{$customer->email}}
reference: {{ $order->reference }}

Informações do pedido

@php $dt = \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $order['created_at']); $dt->setLocale('pt_BR'); @endphp @if($order['total_paid'] != $order['total']) @endif
Número Data Cliente Pagamento Status
{{ $order['id'] }} {{ $dt->format('d-m-Y => H:s') }} {{ $customer->name }} {{ $order['payment'] }}
Subtotal {{ config('cart.currency_symbol') }} {{ $order['total_products'] }}
Imposto {{ config('cart.currency_symbol') }} {{ $order['tax'] }}
Frete {{ config('cart.currency_symbol') }} {{ $order['total_shipping'] }}
Desconto {{ config('cart.currency_symbol') }} {{ $order['discounts'] }}
Total do Pedido {{ config('cart.currency_symbol') }} {{ $order['total'] }}
Total pago {{ config('cart.currency_symbol') }} {{ number_format($order['total_paid'], 2, ",", ".") }}
@if($order) @if($order->total != $order->total_paid)

Ooops, há discrepância no valor total do pedido e no valor pago.
Valor total do pedido: {{ config('cart.currency_symbol') }} {{ $order->total }}
Valor total pago {{ config('cart.currency_symbol') }} {{ $order->total_paid }}

@endif
@if(!$items->isEmpty())

Itens

@foreach($items as $item) @endforeach
SKU Nome Descrição Quantidade Preço
{{ $item->sku }} {{ $item->name }} {!! Str::limit($item->description, 100, '...') !!} @php($pattr = \App\Shop\ProductAttributes\ProductAttribute::find($item->product_attribute_id)) @if(!is_null($pattr))
@foreach($pattr->attributesValues as $it)

{{ $it->attribute->name }} : {{ $it->value }}

@endforeach @endif
{{ number_format($item->pivot->quantity, 2, ',', '.') }} {{ config('cart.currency_symbol') }} {{ number_format($item->price, 2, ',', '.') }}
@endif @if($entrega)

Cartão na entrega:

Data da entrega {{ $entrega->data_entrega }}, na parte da @if ($entrega->horario_entrega === 'manha') Manhã @else Tarde @endif

Conteúdo do cartão a ir com a entrega: "{{ $entrega->mensagem }}"

@if($entrega->assinatura === 'anonimo') Sem assinatura @else Assinatura: "{{ $entrega->assinatura }}" @endif

@if($entrega->endereco)

Endereço para entrega

Nome de identificação Endereço Cidade Bairro CEP País Telefone Valor do Frete
{{ $entrega->endereco->alias }} {{ $entrega->endereco->address_1 }} {{ ($entrega->endereco->cidade->nome_municipio) ?? null }} {{ $entrega->endereco->address_2 }} {{ $entrega->endereco->zip }} {{ $entrega->endereco->country->name }} {{ $entrega->endereco->phone }} {{ config('cart.currency_symbol') }} {{ $order->total_shipping }}
@endif @endif
@endif
@endsection