@extends('layouts.app') @section('title', 'Mes propositions - TapRestation') @push('head') @endpush @push('styles') @endpush @section('content')
Appels d'offres Mes propositions
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{ $responses->total() }} Envoyées
{{ $stats['pending'] ?? 0 }} En attente
{{ $stats['shortlisted'] ?? 0 }} Présélectionnées
{{ $stats['accepted'] ?? 0 }} Acceptées
{{ $stats['rejected'] ?? 0 }} Refusées
Toutes En attente Présélectionnées Acceptées Refusées
@if($responses->count() > 0)
@foreach($responses as $response) @php $tender = $response->tenderRequest; @endphp

@if($tender) {{ $tender->title }} @else Appel d'offre supprimé @endif

@if($tender)
{{ $tender->city }} {{ $tender->start_date ? $tender->start_date->format('d/m/Y') : 'Flexible' }}
@endif
@switch($response->status) @case('pending') En attente @break @case('viewed') Consultée @break @case('shortlisted') Présélectionnée @break @case('accepted') Acceptée @break @case('rejected') Refusée @break @case('withdrawn') Retirée @break @default {{ $response->status }} @endswitch
Prix proposé
@if($response->price_type === 'negotiable') À négocier @else {{ number_format($response->proposed_price, 0, ',', ' ') }} € @endif
Type
@switch($response->price_type) @case('hourly') Par heure @break @case('daily') Par jour @break @case('negotiable') Négociable @break @default Prix fixe @break @endswitch
Score
{{ $response->match_score ?? 0 }}%
Disponibilité
@if($response->availability_start) {{ \Carbon\Carbon::parse($response->availability_start)->format('d/m') }} @else Flexible @endif
Envoyée {{ $response->created_at->diffForHumans() }} @if($response->viewed_at) Vue {{ \Carbon\Carbon::parse($response->viewed_at)->diffForHumans() }} @endif
@if($tender) Voir l'appel @if(in_array($response->status, ['pending', 'viewed'])) Modifier
@csrf @method('DELETE')
@endif @endif
@if($response->client_message)
Message du client

{{ $response->client_message }}

@endif @if($response->status === 'accepted' && $tender)
Félicitations ! Votre proposition a été retenue.
@if($tender->contact_phone) Appeler @endif Envoyer un message
@endif
@endforeach
@if($responses->hasPages())
{{ $responses->links() }}
@endif @else

Aucune proposition

@if(request('status'))

Vous n'avez pas de proposition avec ce statut.

Voir toutes les propositions @else

Vous n'avez pas encore envoyé de proposition.

Parcourir les appels d'offres @endif
@endif
@endsection