@extends('layouts.app') @section('content')

Statistiques des offres

Analysez vos performances et tendances d'enchères

Total Bids

{{ $stats['total_bids'] }}

All time

Success Rate

{{ $stats['success_rate'] }}%

Bids accepted

Avg Bid

€{{ number_format($stats['avg_bid_amount'], 2) }}

Per bid

Total Spent

€{{ number_format($stats['total_spent'], 2) }}

All bids

Active Bids

{{ $stats['active_bids'] }}

Pending response

Offres par statut

Accepted {{ $stats['accepted'] }}
Pending {{ $stats['pending'] }}
Rejected {{ $stats['rejected'] }}
Expired {{ $stats['expired'] }}

Bidding Trend (Last 6 Months)

@foreach ($stats['monthly_trend'] as $month => $count)
@foreach (array_keys($stats['monthly_trend']) as $month)
{{ substr($month, 5) }}
@endforeach

Bid Range

Highest Bid

€{{ number_format($stats['highest_bid'], 2) }}

On {{ $stats['highest_bid_service'] ?? 'Service' }}

Lowest Bid

€{{ number_format($stats['lowest_bid'], 2) }}

On {{ $stats['lowest_bid_service'] ?? 'Service' }}

Median Bid

€{{ number_format($stats['median_bid'], 2) }}

Middle value

Offres par catégorie

@foreach ($stats['top_categories'] as $category)
{{ $category['name'] }}
{{ $category['count'] }} bids €{{ number_format($category['total'], 2) }}
@endforeach

Recent Bids

@forelse ($recentBids as $bid)

{{ $bid->service->name }}

{{ $bid->service->prestataire->name }}

€{{ number_format($bid->bid_amount, 2) }}

{{ ucfirst($bid->status) }}
@empty

Aucune offre pour le moment

@endforelse
@endsection