@use('app\Helpers\Helpers') @extends('frontend.layout.master') @section('title', __('frontend::static.account.profile')) @section('breadcrumb') {{ __('frontend::static.account.home') }} {{ __('frontend::static.account.profile') }} @endsection @section('content') @includeIf('frontend.account.sidebar') {{ __('frontend::static.account.show_menu') }} {{ __('frontend::static.account.dashboard') }} @php $profieImg = auth()?->user()?->getFirstMediaUrl('image'); @endphp @if (Helpers::isFileExistsFromURL($profieImg)) @else {{ substr(auth()->user()?->name, 0, 1) }} @endif Edit {{ auth()?->user()?->name }} {{ auth()?->user()?->email }} {{ __('frontend::static.account.wallet_balance') }} {{ Helpers::getSettings()['general']['default_currency']->symbol }}{{ auth()?->user()?->wallet?->balance ?? 0.0 }} {{-- --}} {{ __('frontend::static.account.pending_services') }} {{auth()?->user()?->getPendingServiceAttribute() ?? 0}} Services {{-- --}} {{ __('frontend::static.account.completed_services') }} {{auth()?->user()?->getCompletedServiceAttribute() ?? 0}} Services {{-- --}} {{ __('frontend::static.account.profile_setting') }} {{ __('frontend::static.account.name') }} {{ auth()?->user()?->name ?? '-' }} {{ __('frontend::static.account.phone') }} @if(auth()?->user()?->code && auth()?->user()?->phone) +{{ auth()?->user()?->code }} {{ auth()?->user()?->phone }} @else - @endif {{ __('frontend::static.account.email') }} {{ auth()?->user()?->email ?? '-' }} {{ __('frontend::static.account.address') }} @php $address=auth()?->user()?->getPrimaryAddressAttribute()->address ?? null; $state=auth()?->user()?->getPrimaryAddressAttribute()?->state?->name ?? null; $postal_code=auth()?->user()?->getPrimaryAddressAttribute()?->postal_code ?? null; $country=auth()?->user()?->getPrimaryAddressAttribute()?->country?->name ?? null; @endphp @if($address) {{ $address}} , {{$state}} - {{$postal_code}} , {{$country}} @else - @endif {{ __('frontend::static.account.password') }} {{auth()?->user()?->password ? '● ● ● ● ● ●' : '-' }} @endsection @push('js') @endpush
{{ auth()?->user()?->email }}