@extends('layouts.master') @section('title', 'User Profile') @section('content') @include('partials.qi-styles')
Home User Profile

User Profile

Manage your account settings, profile picture, and view recent activities.

{{ $customerDocsCount }}
Sales Docs
{{ $supplierDocsCount }}
Purchase Docs
@if(session('success')) @endif @if($errors->any()) @endif
Customer Docs Created
{{ $customerDocsCount }}
Supplier Docs Created
{{ $supplierDocsCount }}
Receipts Processed
{{ $receiptsCount }}
Profile Photo
@if($user->profile_picture) @else @php $words = explode(' ', $user->name); $initials = ''; foreach ($words as $word) { $initials .= strtoupper(substr($word, 0, 1)); } $initials = substr($initials, 0, 2); @endphp {{ $initials ?: 'U' }} @endif

Drag & drop your photo or click below to browse

@csrf
Upload Image
Recent Activity
@if($recentDocuments->isEmpty())
No recent documents created.
@else
@foreach($recentDocuments as $doc)
{{ $doc['number'] }} {{ $doc['date'] }}
{{ $doc['type'] }} ${{ number_format($doc['amount'], 2) }}
@php $statusClass = 'qi-status-draft'; if ($doc['status'] === 'processed' || $doc['status'] === 'paid') { $statusClass = 'qi-status-processed'; } elseif ($doc['status'] === 'converted') { $statusClass = 'qi-status-converted'; } elseif ($doc['status'] === 'cancelled') { $statusClass = 'qi-status-cancelled'; } @endphp {{ $doc['status'] }}
@endforeach
@endif
Update Profile Details
@csrf @method('PUT')
Basic Information

To change your password, fill in the fields below. Otherwise, leave them blank.

Danger Zone
Sign Out of Other Sessions

This will immediately log you out of all other active browser sessions on other devices. Your current session will remain active.

@csrf
Receipts Stat Note: The "Receipts Processed" count displayed is the total receipts count in the system, as individual creator tracking is not enabled for receipts.
@endsection @section('scripts') @endsection