@extends('page.account.layout') @section('account.content')
@translate('profilePage', 'dashboard_title')
@translate('profilePage', 'dashboard_personal_info_title') {{ $currentUser->name . ' ' . $currentUser->surname }} @translate('profilePage', 'dashboard_email_title') {{ $currentUser->email }} @translate('profilePage', 'dashboard_mobile_title') {{ substr($currentUser->phone_number, 0, 2) . str_repeat('*', strlen($currentUser->phone_number) - 5) . substr($currentUser->phone_number, strlen($currentUser->phone_number) - 3) }}
@if ($currentUser->primaryAddreses)
@translate('profilePage', 'dashboard_default_address_title') {{ $currentUser->primaryAddreses->name }} {{ $currentUser->primaryAddreses->street }}, {{ $currentUser->primaryAddreses->city }}, {{ $currentUser->primaryAddreses->state }}, {{ $currentUser->primaryAddreses->zipcode }}, {{ $currentUser->primaryAddreses->country }}
@endif
@translate('profilePage', 'dashboard_recent_order')
@php $counter = 0; @endphp @foreach ($currentUser->orderedItems as $item) @if ($item->vehiclePart == null) @continue @endif @if ($counter < 3)
Parts

{{ $item->vehiclePart->name }}

@translate('orders', 'order_no') .{{ $item->order_id }} {{-- --}}
{{ $item->vehiclePart->pvnPrice }} @translate('orders', 'purchase_date') {{ $item->order->order_date }}
@php $counter++; @endphp @endif @endforeach
@endsection