@extends('layouts.base') @section('content') @section('breadcrumb') @endsection
{{ $mandat->numero ?: 'Non défini' }}
@if($mandat->type)
{{ $mandat->type->label() }}
{{ $mandat->type->description() }}
@else
Non défini
@endif
@if($mandat->nature)
{{ $mandat->nature->label() }}
{{ $mandat->nature->description() }}
@else
Non défini
@endif
@if($mandat->relation_type)
{{ $mandat->relation_type->label() }} - {{ $mandat->relation_type->roleLabel() }}
{{ $mandat->relation_type->description() }}
@else
Non défini
@endif
@if($mandat->commission && $mandat->commission_type)
{{ number_format($mandat->commission, 2, ',', ' ') }} {{ $mandat->commission_type->unite() }}
{{ $mandat->commission_type->label() }}
@else
Non définie
@endif
@if($mandat->mandant && $mandat->mandant->mandantable)
@if($mandat->mandant->mandantable instanceof \App\Models\User)
{{ $mandat->mandant->mandantable->fullName() }}
{{ $mandat->mandant->mandantable->email }}
@elseif($mandat->mandant->mandantable instanceof \App\Models\Company)
{{ $mandat->mandant->mandantable->name }}
@if($mandat->mandant->mandantable->type)
{{ $mandat->mandant->mandantable->type->label() }}
@endif
@endif
@else
Non défini
@endif
@if($mandat->user)
{{ $mandat->user->fullName() }}
{{ $mandat->user->email }}
@else
Non défini
@endif
@if($mandat->date_signature) {{ $mandat->date_signature->format('d/m/Y') }} @else Non définie @endif
@if($mandat->date_expiration) {{ $mandat->date_expiration->format('d/m/Y') }} @if($mandat->date_expiration->isPast()) Expiré @elseif($mandat->date_expiration->isFuture()) En cours @endif @else Non définie @endif
{{ $mandat->note_interne_text }}
{{ $mandat->created_at->format('d/m/Y à H:i') }}
{{ $mandat->updated_at->format('d/m/Y à H:i') }}
{{ $fieldValue }}
@elseif($field->type === \App\Enums\FieldType::CHECKBOX)@if($fieldValue == '1') Activé @else Désactivé @endif
@elseif($field->type === \App\Enums\FieldType::DATE){{ \Carbon\Carbon::parse($fieldValue)->format('d/m/Y') }}
@else{{ $fieldValue }}
@endif @if($field->description) {{ $field->description }} @endif