@extends('layouts.app') @section('title', 'Profile Settings') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {{-- Profile Header --}}
@if(auth()->user()->avatar_url) {{ auth()->user()->name }} @else
{{ substr(auth()->user()->name, 0, 1) }}
@endif
@csrf

{{ auth()->user()->name }}

{{ auth()->user()->email }}

{{ auth()->user()->role }} Member since {{ auth()->user()->created_at->format('M Y') }}
@if(auth()->user()->avatar)
@csrf @method('DELETE')
@endif
{{-- Left Column --}}
{{-- Profile Information --}}

Profile Information

Update your account details

@csrf @method('PATCH')
{{-- Password --}}

Security

Update your password

@csrf @method('PUT')
{{-- Right Column --}}
{{-- Account Info --}}

Account Details

Role

{{ auth()->user()->role }}

Status

Active

Joined

{{ auth()->user()->created_at->format('F j, Y') }}

{{-- Quick Links --}}

Quick Links

@if(auth()->user()->isCustomer()) Dashboard My Orders @endif @if(auth()->user()->isVendor()) Vendor Dashboard @endif Browse Products
@endsection