@extends('admin.layouts.master') @section('css') @endsection @section('contents')
@can('create_user_messages') @endcan
{{ $stats['total_projects'] }}
{{__('Total Projects')}}
{{ $stats['total_offers'] }}
{{__('Total Offers')}}
{{ $stats['completed_offers'] }}
{{__('Completed Offers')}}
${{ number_format($stats['total_earnings'], 2) }}
{{__('Total Earnings')}}
@if($user->isFreelancer())

حصة العروض الشهرية

{{ now()->translatedFormat('F Y') }}
{{ $stats['monthly_offers_remaining'] }}
العروض المتبقية
{{ $stats['monthly_offers_used'] }}
العروض المستخدمة
{{ $stats['monthly_offers_limit'] }}
الحد الأقصى الشهري
@php $usedPercent = $stats['monthly_offers_limit'] > 0 ? round(($stats['monthly_offers_used'] / $stats['monthly_offers_limit']) * 100) : 0; $barColor = $usedPercent >= 90 ? 'danger' : ($usedPercent >= 60 ? 'warning' : 'success'); @endphp
نسبة الاستخدام هذا الشهر {{ $usedPercent }}%
@if($stats['monthly_offers_remaining'] == 0)
وصل المستقل إلى الحد الأقصى من العروض لهذا الشهر.
@endif
@endif

{{__('Basic Information')}}

@if($user->isProjectOwner() && $ownedProjects->count() > 0)

{{__('Owned Projects')}} ({{ $ownedProjects->count() }})

@foreach($ownedProjects as $project)
{{ $project->title }}
{{ $project->category?->name ?? __('N/A') }}
{{ $project->getCurrentStatus() }}

{{__('Description')}}: {{ Str::limit($project->description, 150) }}

{{__('Budget')}}: @if($project->budget_type == 1) ${{ number_format($project->price, 2) }} @else ${{ number_format($project->price_from, 2) }} - ${{ number_format($project->price_to, 2) }} @endif

{{ __('front.Payment Method') }}: {{ $project->size ? getTrans($project->size->details, 'ar') : __('N/A') }}

{{__('Timeline')}}: {{ $project->time->name ?? __('N/A') }}

{{__('Offers')}}: {{ $project->offers->count() }}

{{__('Created')}}: {{ $project->created_at->format('M j, Y') }}

@endforeach
@endif @if($user->isFreelancer() && $freelancerProjects->count() > 0)

{{__('Freelancer Projects')}} ({{ $freelancerProjects->count() }})

@foreach($freelancerProjects as $project)
{{ $project->title }}
{{ $project->category?->name ?? __('N/A') }}
{{ $project->getCurrentStatus() }}

{{__('Description')}}: {{ Str::limit($project->description, 150) }}

{{__('Budget')}}: @if($project->budget_type == 1) ${{ number_format($project->price, 2) }} @else ${{ number_format($project->price_from, 2) }} - ${{ number_format($project->price_to, 2) }} @endif

{{ __('front.Payment Method') }}: {{ $project->size ? getTrans($project->size->details, 'ar') : __('N/A') }}

{{__('Timeline')}}: {{ $project->time->name ?? __('N/A') }}

{{__('Offers')}}: {{ $project->offers->count() }}

{{__('Created')}}: {{ $project->created_at->format('M j, Y') }}

@endforeach
@endif @if($userOffers->count() > 0)

{{__('Offers')}} ({{ $userOffers->count() }})

@foreach($userOffers as $offer) @endforeach
{{__('Project')}} {{__('Category')}} {{__('Amount')}} {{__('Timeline')}} {{__('Status')}} {{__('Created')}}
{{ $offer->project->title ?? __('N/A') }}
{{ Str::limit($offer->project->description ?? '', 50) }}
{{ $offer->project->category->name ?? __('N/A') }} ${{ number_format($offer->total, 2) }} {{ $offer->time->name ?? __('N/A') }} {{ $offer->getCurrentStatus() }} {{ $offer->created_at->format('M j, Y') }}
@endif
@if($user->isBanned()) محظور سبب الحظر: {{ $user->ban_reason ?? '—' }}  |  تاريخ الحظر: {{ $user->banned_at?->format('Y-m-d H:i') ?? '—' }} @else نشط المستخدم غير محظور حالياً @endif
@if($user->isBanned())
@csrf
@else @endif
@if(!$user->isBanned()) @endif
@endsection