@extends('layouts.prestataire')
@section('title', $tender->title)
@section('content')
@php
$photos = $tender->photos;
if (is_string($photos)) {
$photos = json_decode($photos, true) ?? [];
}
$photos = $photos ?? [];
$videos = $tender->videos;
if (is_string($videos)) {
$videos = json_decode($videos, true) ?? [];
}
$videos = $videos ?? [];
@endphp
{{-- Back Link --}}
Retour aux appels d'offres
{{-- Match Score Card --}}
Catégories compatibles
@if($matchScore >= 50)
Zone géographique
@endif
@if(!$existingResponse && $canRespond)
Proposer mes services
@elseif($existingResponse)
Proposition envoyée - {{ ucfirst($existingResponse->status) }}
@endif
{{-- Header Card --}}
Publié
Expire {{ $tender->expires_at ? $tender->expires_at->diffForHumans() : 'dans 30 jours' }}
{{ $tender->title }}
@foreach($tender->categories as $category)
{{ $category->name }}
@endforeach
{{-- Description --}}
Description
{{ $tender->description }}
{{-- Photos --}}
@if(count($photos) > 0)
Photos ({{ count($photos) }})
@foreach($photos as $photo)
@endforeach
@endif
{{-- Vidéos --}}
@if(count($videos) > 0)
Vidéos ({{ count($videos) }})
@foreach($videos as $video)
@endforeach
@endif
{{-- Client --}}
Le client
{{ $tender->client->user->name ?? 'Client' }}
Membre depuis {{ $tender->client->user->created_at->format('Y') ?? '2024' }}
{{-- Details --}}
Détails
-
Lieu
{{ $tender->city }}, {{ $tender->postal_code }}
-
Date souhaitée
{{ $tender->start_date ? $tender->start_date->format('d/m/Y') : 'Flexible' }}
@if($tender->budget_visible && $tender->budget_min)
-
Budget
{{ number_format($tender->budget_min, 0, ',', ' ') }} € - {{ number_format($tender->budget_max, 0, ',', ' ') }} €
@endif
-
Contact préféré
@switch($tender->contact_preference)
@case('messaging') Messagerie @break
@case('email') Email @break
@case('phone') Téléphone @break
@default Messagerie @break
@endswitch
{{-- Fixed CTA Button --}}
@if(!$existingResponse && $canRespond)