@extends('layouts.base') @section('content') @php $canManagePartnerOptions = auth()->user()->canAccessPartnerOptionsWrite(); @endphp @section('breadcrumb') @endsection
@if(session('status')) @endif @if($errors->has('date_end')) @endif

Mes options

Suivez et gérez les options de vos clients
@if($applications->isEmpty())
Vous n'avez accès à aucune application pour le moment.
@else @foreach($applications as $application)
@if(auth()->user()->isRole('ROLE_SUPPORT'))
{{ $application->name }}
@endif
{{ $application->options->count() }} option{{ $application->options->count() > 1 ? 's' : '' }} @if($canManagePartnerOptions) Nouvelle option @endif
@if($application->options->isEmpty())
Aucune option créée pour cette application.
@else @endif
@endforeach @endif
@if($applications->isNotEmpty())
@foreach($applications as $application) @if(!$application->options->isEmpty())
@if($application->options_en_cours->isEmpty())
Aucune option en cours.
@else
@if($canManagePartnerOptions) @endif @foreach($application->options_en_cours as $option) @if($canManagePartnerOptions) @endif @endforeach
@if(($sortBy ?? '') === 'client') @else @endif Client @if(($sortBy ?? '') === 'programme') @else @endif Programme Fiscalité @if(($sortBy ?? '') === 'commercialisateur') @else @endif Commercialisateur @if(($sortBy ?? 'created_at') === 'created_at') @else @endif Posée le @if(($sortBy ?? '') === 'date_end') @else @endif Fin @if(($sortBy ?? '') === 'state') @else @endif Statut de l'option
@if($option->product && $option->product->program) {{ $option->product->program->name }} @endif
@if($option->product) Lot {{ $option->product->number }} {{ $option->product->type }} @endif
{{ $option->fiscalite_label() }} @if($option->user) {{ $option->user->fullName() }} @endif @if($option->created_at) {{ $option->created_at->format('d/m/Y à H:i') }} @endif @if($option->date_end) {{ $option->date_end->format('d/m/Y à H:i') }} @endif @if($option->state) {{ $option->state->label() }} @endif @include('partner.options.partials.actions-dropdown', ['option' => $option, 'archived' => false])
@endif
@if($application->options_archivees->isEmpty())
Aucune option archivée.
@else
@if($canManagePartnerOptions) @endif @foreach($application->options_archivees as $option) @if($canManagePartnerOptions) @endif @endforeach
@if(($sortBy ?? '') === 'client') @else @endif Client @if(($sortBy ?? '') === 'programme') @else @endif Programme Fiscalité @if(($sortBy ?? '') === 'commercialisateur') @else @endif Commercialisateur @if(($sortBy ?? 'created_at') === 'created_at') @else @endif Posée le @if(($sortBy ?? '') === 'date_end') @else @endif Fin @if(($sortBy ?? '') === 'state') @else @endif Statut de l'option
@if($option->product && $option->product->program) {{ $option->product->program->name }} @endif
@if($option->product) {{ $option->product->name }} @endif
{{ $option->fiscalite_label() }} @if($option->user) {{ $option->user->fullName() }} @endif @if($option->created_at) {{ $option->created_at->format('d/m/Y à H:i') }} @endif @if($option->date_end) {{ $option->date_end->format('d/m/Y à H:i') }} @endif @if($option->state) {{ $option->state->label() }} @endif @include('partner.options.partials.actions-dropdown', ['option' => $option, 'archived' => true])
@endif
@endif @endforeach
@endif @push('scripts') @endpush @endsection