@php use App\Enums\ExchangeProcessStatus; @endphp @extends('layouts.admin', ['pageType' => 'exchange-processes']) @section('content') @include('widgets/admin-error-handling')
Felhasználó: {{ $exchangeProcess->user->name }}
A Felhasználó ezeket szeretné {{ $exchangeProcess->name != null ? 'cserélni' : 'visszaküldeni' }}:
@foreach ($exchangeProcess->items as $item) @if (!$item->exchanged) @continue @endif
- {{ $item->product->name }} {{ $item->quantity }} db ({{ $item->price }} Ft)
@php $product = $exchangeProcess->user->allProducts()->wherePivot('id', $item->product_user_pivot_id)->first(); @endphp @for ($i = 0; $i < 4; $i++) @if ($product->pivot->{'image_' . $i . '_extension'} != null) @endif @endfor
@endforeach @if ($exchangeProcess->name != null)
Ezekre a játékokra szeretné cserélni:
@foreach ($exchangeProcess->items as $item) @if ($item->exchanged) @continue @endif
@csrf @method('PUT') - {{ $item->product->name }} ({{ $item->price }} Ft)
@endforeach Játék hozzáadása:
@csrf
Fizetett összeg: {{ $exchangeProcess->paid_price }} Ft
Szállítási költség: {{ $exchangeProcess->shipping_price }} Ft
@endif
@csrf @method('PUT')
@endsection