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

Auction Bids

{{ $service->name ?? 'Service' }}

@if (auth()->user()->role === 'client') @endif
@if ($highestBid)

Highest Bid

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

by {{ $highestBid->client->name ?? 'Anonymous' }}

Expires in

{{ $highestBid->expires_at->diffInDays(now()) }} days

@else

No bids yet. Be the first to bid!

@endif
@forelse ($bids as $bid)

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

{{ $bid->client->name ?? 'Anonymous' }}

@if ($bid->message)

{{ $bid->message }}

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

{{ $bid->created_at->format('d M Y H:i') }}

@if (auth()->user()->id === $service->prestataire_id && $bid->status === 'pending')
@csrf
@csrf
@endif
@empty

No bids placed yet.

@endforelse
@endsection