@extends('layouts.designer') @php $page_title = 'Mes projets'; @endphp @section('meta-title', 'Espace designers') @section('meta-keywords', '') @section('meta-description', '') @section('content')
@foreach ($projets as $projet) @php $payed = \App\Models\ProjetDesigner::where('projet_id', $projet->id) ->where('designer_id', auth()->id()) ->first()->payed; @endphp @endforeach
{!! lang('Référence') !!} {!! lang('Nom projet') !!} {!! lang('Nom client') !!} {!! lang('Forfait') !!} {!! lang('Pièce') !!} {!! lang('Date de lancement') !!} {!! lang('Statut') !!} {!! lang('Paiement') !!}
{{ $projet->id }} {{ $projet->nom ?? $projet->espace }} {{ ($projet->user->nom ?? '') . ' ' . ($projet->user->prenom ?? '') }} {{ $projet->forfait_conception ?? $projet->forfait }} {{ $projet->espace ?? '' }} {{ \Carbon\Carbon::parse($projet->start_date)->format('d-m-Y H:i') }} @if ($projet->terminee) Terminé @else @if ($projet->conception == 1) Conception @elseif($projet->esquisse == 1) Concept d'idées @endif @endif @if ($payed) @else @endif
@endsection @section('script') @endsection