@extends('shop.layout') @section('title', __('portal.shop.my_account')) @section('content') @php $currency = $tenant->settings['currency'] ?? 'MDL'; $statuses = \App\Models\Tenant\OnlineOrder::STATUSES; @endphp

{{ __('portal.shop.hello_name', ['name' => $customer->name]) }}

{{ __('portal.shop.contact_data') }}

📞 {{ $customer->phone }}

@if ($customer->email)

✉️ {{ $customer->email }}

@endif

{{ __('portal.shop.my_orders', ['count' => $orders->count()]) }}

@if ($orders->isEmpty())

{{ __('portal.shop.no_orders_yet') }}

{{ __('portal.shop.view_catalog') }}
@else
@foreach ($orders as $order) @endforeach
{{ __('portal.shop.order_nr') }}{{ __('portal.shop.order_date') }}{{ __('portal.shop.order_items') }}{{ __('portal.common.total') }}{{ __('portal.shop.status') }}
#{{ $order->number }} {{ $order->created_at->format('d.m.Y') }} {{ $order->items()->count() }} {{ number_format((float) $order->total, 2) }} {{ $currency }} {{ $statuses[$order->status] ?? $order->status }} {{ __('portal.shop.order_details_arrow') }}
@endif @endsection