@extends('front::user.layouts.master') @section('user-content')

{{ trans('front::messages.profile.personal-information') }}

{{ trans('front::messages.profile.fname') }}
{{ $user->first_name }}
{{ trans('front::messages.profile.lname') }}
{{ $user->last_name }}
{{ trans('front::messages.profile.phone-number') }}
{{ $user->username }}
{{ trans('front::messages.profile.email') }}
{{ $user->email ?: '-' }}
{{ trans('front::messages.profile.state') }}
{{ $user->address ? $user->address->province->name : '-' }}
{{ trans('front::messages.profile.city') }}
{{ $user->address ? $user->address->city->name : '-' }}
{{ trans('front::messages.profile.postal-code') }}
{{ $user->address ? $user->address->postal_code : '-' }}
{{ trans('front::messages.profile.complete-address') }}
{{ $user->address ? ellips_text($user->address->address, 80) : '-' }}

{{ trans('front::messages.profile.list-latest-favorites') }}

@if ($user->favorites()->count()) @else

{{ trans('front::messages.profile.there-nothing-show') }}

@endif
@if($last_orders->count())

{{ trans('front::messages.profile.latest-orders') }}

@foreach ($last_orders as $order) @endforeach
# {{ trans('front::messages.profile.order-number')}} {{ trans('front::messages.profile.order-registration-date')}} {{ trans('front::messages.profile.payment-status')}} {{ trans('front::messages.profile.details')}}
{{ $loop->iteration}} {{ $order->id }} {{ jdate($order->created_at)->format('%d %B %Y') }} @if($order->status == 'paid') {{ trans('front::messages.profile.paid')}} @elseif($order->status == 'unpaid') {{ trans('front::messages.profile.unpaid')}} @else {{ trans('front::messages.profile.canceled')}} @endif
@endif
@endsection @push('scripts') @endpush