@extends('admin.layouts.index') @section('content')
@csrf

{{ $model->transaction_id }}

A megrendelés feladási ideje {{ $model->created_at->format('Y.m.d H:i') }} @if($model->user) , a következő felhasználótól: {{ $model->user->name }} @endif

{{--
--}} {{--

Termék adatai

--}} {{--
--}}
@include('admin.includes.fields.select', ['name' => "status", 'options' => \App\Order::$STATUS_VALUES, 'value' => $model->status, 'info' => 'A megrendelés státusza.', 'class' => "s$model->status", 'disabled' => ($model->status == 9)])
@include('admin.includes.fields.disabled', ['name' => "payment_type", 'value' => $model->payment_type])
@include('admin.includes.fields.disabled', ['name' => "shipping_type", 'value' => 'Kiszállítás', 'label' => 'Szállítási mód'])
@include('admin.includes.fields.disabled', ['name' => "billingo_invoice_id", 'value' => $model->billingo_invoice_id ?? 'Nincs adat'])
@include('admin.includes.fields.disabled', ['name' => "transaction_number", 'value' => $model->transaction_number ?? 'Nincs adat'])

Vásárló adatai

{{ $model->customer_billing_name }}
{{ $model->customer_billing_postal_code }} {{ $model->customer_billing_city }}, {{ $model->customer_billing_address }}
Magyarország


{{ $model->customer_email }}


{{ $model->customer_phone }}

{{--@if($model->carrier->id== 1)--}} {{--

--}} {{--{{ $model->carrier->title }}--}} {{--

--}} {{--@elseif($model->carrier->id== 2)--}} {{--

--}} {{--Pick Pack Pont--}} {{--cím
{{ $model->ppp_address }}--}} {{--

--}} {{--@else--}}

{{ $model->customer_delivery_name }}
{{ $model->customer_delivery_postal_code }} {{ $model->customer_delivery_city }}, {{ $model->customer_delivery_address }}
Magyarország

{{--@endif--}}
@if($model->comment)

{{ $model->comment }}

@endif
@foreach($model->products as $p) {{--SZÁLLÍTÁSI DÍJ / TERMÉK--}} @endforeach
Termék Mennyiség Egységár Ár
{{ $p->name }}

{{ $p->sku }}

{{ $p->pivot->quantity }} {{ $p->unit }} {{ \App\Utils::priceForHumans($p->pivot->unit_price) }} {{ \App\Utils::priceForHumans($p->pivot->price) }}
{{ $p->name }} szállítási díja {{--
--}} {{--

--}} {{--{{ $p->sku }}--}} {{--

--}} {{----}}
{{ \App\Utils::priceForHumans($p->pivot->shipping_cost) }}
Fizetési módszer költsége ({{ $model->payment_type }}): {{ \App\Utils::priceForHumans($model->payment_type_cost) }}
Összesen:

{{ \App\Utils::priceForHumans($model->price + $model->payment_type_cost) }}

{{--
--}} {{--
--}} {{----}} {{--
--}} {{--
--}}
@stop @section('custom-css') @stop @section('custom-js') @stop