@extends('frontend.layout.dashboard-master') @section('site_title', __('Dashboard')) @section('content') {{-- Profile Switch --}} @if(get_static_option('profile_switch_enable_disable') != 'disable')

{{ __('Dashboard') }}

@endif {{-- Summary Cards --}}
{{-- Wallet Balance --}}

{{ __('Wallet Balance') }}

{{ float_amount_with_currency_symbol($total_wallet_balance) ?? '0.00' }}

{{-- Total Services --}} @if(get_static_option('project_enable_disable') != 'disable')

{{ __('Total Services') }}

{{ $total_project ?? 0 }}

@endif {{-- Complete Order --}}

{{ __('Complete Order') }}

{{ $complete_order ?? 0 }}

{{-- Active Order --}}

{{ __('Active Order') }}

{{ $active_order ?? 0 }}

{{-- Charts --}}
{{-- Earning Summary --}}

{{ __('Earning Summary') }}

{{-- Period dropdown --}}
{{-- Y-axis labels --}}
{{-- Chart area --}}
{{-- Floating tooltip, positioned by JS --}}

{{-- X-axis labels (populated by JS) --}}
{{-- Service View --}}

{{ __('Service View') }}

{{-- Period dropdown --}}
{{-- Y-axis labels --}}
{{-- Chart area --}}
{{-- Horizontal dashed grid lines --}}
{{-- Floating tooltip, positioned by JS --}}

{{-- X-axis labels (populated by JS) --}}
{{-- Latest Orders --}}

{{ __('Latest Orders') }}

{{ __('All Orders') }}
@forelse($latest_orders as $order) @php $isPaid = strtolower($order->payment_status) === 'complete'; $isActive = $order->status == 1; @endphp @empty @endforelse
{{ __('Budget') }} {{ __('Client') }} {{ __('Payment Status') }} {{ __('Create Date') }} {{ __('Delivery Time') }} {{ __('Option') }}
{{ float_amount_with_currency_symbol($order->price) }}
@if($order->user && $order->user->image) @else
{{ $order->user ? strtoupper(substr($order->user->first_name ?? '?', 0, 1)) : '?' }}
@endif

{{ $order->user->fullname ?? __('N/A') }}

{{ $order->user->email ?? '' }}

@if($isPaid) • {{ __('Complete') }} @else • {{ ucfirst($order->payment_status) }} @endif {{ $order->created_at->toFormattedDateString() }} {{ $order->delivery_time }}
{{-- View --}} {{-- Invoice --}} {{-- Decline (active orders only) --}} @if($isActive)
@csrf
@else @endif
{{ __('No orders found.') }}
{{-- Client-side pagination --}}
{{-- Latest Services (Projects) --}} @if(get_static_option('project_enable_disable') != 'disable')

{{ __('Latest Services') }}

{{ __('All Services') }}
@forelse($my_projects as $project) @empty @endforelse
{{ __('Title') }} {{ __('Action') }}
{{ $project->title }}
{{ __('No services found.') }}
{{-- Client-side pagination --}}
@endif @endsection @section('script') @endsection