@extends('layouts.email', ['width' => '100%']) @section('content')
Kedves {{ $name }}!
@if ($toAdmin) @if ($exchangeProcess->name == null) Új visszaküldési folyamat indult (Azonosító: #{{ $exchangeProcess->id }}). @else Új cserefolyamat indult (Azonosító: #{{ $exchangeProcess->id }}). @endif @else @if ($exchangeProcess->name == null) A visszaküldési folyamatod (Azonosító: #{{ $exchangeProcess->id }}) sikeresen elindult. @else A cserefolyamatod (Azonosító: #{{ $exchangeProcess->id }}) sikeresen elindult. @endif @endif
@if ($exchangeProcess->name != null)
Számlázási cím:
Név: {{ $exchangeProcess->name }}
Irányítószám: {{ $exchangeProcess->postal_code }}
Település: {{ $exchangeProcess->city }}
Utca és házszám: {{ $exchangeProcess->street }}
Telefonszám: {{ $exchangeProcess->phone }}
Email: {{ $exchangeProcess->user->email }}
Szállítási cím:
Név: {{ $exchangeProcess->shipping_name }}
Irányítószám: {{ $exchangeProcess->shipping_postal_code }}
Település: {{ $exchangeProcess->shipping_city }}
Utca és házszám: {{ $exchangeProcess->shipping_street }}
Megrendelés dátuma:
   {{ convertToTimezone($exchangeProcess->created_at) }}
Státusz:
   {{ $exchangeProcess->status->label() }}
Szállítási költség:
   {{ number_format($exchangeProcess->shipping_price, 0, ',', ' ') }} Ft
Fizetve a termékekért:
   {{ number_format($exchangeProcess->paid_price, 0, ',', ' ') }} Ft
@endif
Visszaküldött termékek:
@php $total = 0; @endphp @foreach ($exchangeProcess->items as $item) @if (!$item->exchanged) @continue @endif @php $total += $item->price * $item->quantity; @endphp @endforeach
Terméknév db. Ár Ár össz.
 
{{ $item->product->name }} {{ $item->product->name }} {{ $item->quantity }} {{ number_format($item->price, 0, ',', ' ') }} Ft {{ number_format($item->price * $item->quantity, 0, ',', ' ') }} Ft
 
 
Összesen: {{ number_format($total, 0, ',', ' ') }} Ft
@if ($exchangeProcess->name != null)
Kapott termékek:
@php $total = 0; @endphp @foreach ($exchangeProcess->items as $item) @if ($item->exchanged) @continue @endif @php $total += $item->price * $item->quantity; @endphp @endforeach
Terméknév db. Ár Ár össz.
 
{{ $item->product->name }} {{ $item->product->name }} {{ $item->quantity }} {{ number_format($item->price, 0, ',', ' ') }} Ft {{ number_format($item->price * $item->quantity, 0, ',', ' ') }} Ft
 
 
Összesen: {{ number_format($total, 0, ',', ' ') }} Ft
@endif
Üdvözlettel,
{{ env('APP_NAME') }}
@endsection