@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 --}}
{{ $matchScore }}%

Correspondance avec votre profil

Cette demande match avec vos compétences

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 }}

{{ $tender->city }} ({{ $tender->radius_km }} km)
@if($tender->start_date) {{ $tender->start_date->format('d/m/Y') }} @if($tender->end_date) - {{ $tender->end_date->format('d/m/Y') }} @endif @else Date flexible @endif
@if($tender->budget_visible && $tender->budget_min)
{{ number_format($tender->budget_min, 0, ',', ' ') }} € - {{ number_format($tender->budget_max, 0, ',', ' ') }} €
@endif
{{ $tender->responses()->count() }}/{{ $tender->max_responses }} propositions
@foreach($tender->categories as $category) {{ $category->name }} @endforeach
{{-- Description --}}

Description

{{ $tender->description }}
{{-- Photos --}} @if(count($photos) > 0)

Photos ({{ count($photos) }})

@foreach($photos as $photo)
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

{{-- Fixed CTA Button --}} @if(!$existingResponse && $canRespond)
Proposer mes services
@endif @endsection