Dossier {{ $project->ref }} / {{ $project->client?->name_and_surname }}

@if(auth()->user()->can('projects.update') && $project->can_update_status) @endif @if(auth()->user()->is_bo && $project->duplicates->count())
@lang('Duplicate of') @foreach($project->duplicates->sortBy('id') as $duplicate) {{ $duplicate->ref }} {{ $loop->last ? '' : ',' }} @endforeach
@endif @if($this->isImportedFromSkapane)
@lang('Project imported with OCR')
@endif @if(auth()->user()->is_bo) @else @endif
{{--
{{ $project->category->name }}
--}} {{--
  • REF: {{ $project->ref }}
  • Crée Le: {{ $project->created_at->isoFormat('LLL') }}
--}}
@livewire('projects.project-header', [ 'project' => $this->project_data->toArray(), 'simulation' => $this->simulation_data->toArray(), 'clients' => $this->project->clients->toArray() ], key(uniqid()))
@livewire('user.wizard.client.client-wizard', [ 'projectId' => $project->hash_id, 'clientId' => $project->client->hash_id, 'params' => [ 'showTitle' => false ] ])
@if(! auth()->user()->has_limited_account && auth()->user()->can('simulator.view'))
@livewire('simulations.simulations-manager', [ 'projectId' => $project->id, 'simulation' => $this->simulation_data_from_project->toArray() ], key('simulations-manager')) {{-- @livewire('simulations.simulations-manager', [ 'projectId' => $project->id ], key('simulations-manager')) --}}
Mes simulations
@livewire('simulations.simulations-table', [ 'restrict' => ['project_id' => $project->id, 'is_proposal' => false], 'hide' => ['filters'], 'showPagination' => false, 'deferLoad' => true ])
@endif
@livewire('documents.documents-manager', [ 'modelType' => $project->client->getMorphClass(), 'modelId' => $project->client->id, 'showFullManager' => false, 'config' => [ 'project_id' => $project->getRouteKey() ] ])
@livewire('notes.notes-viewer', [ 'modelClass' => $project->getMorphClass(), 'modelId' => $project->id, 'deferLoad' => true ])
@if(! auth()->user()->has_limited_account && auth()->user()->can('simulator.view')) @if(auth()->user()->can('proposals.view'))
@livewire('simulations.proposals-manager', [ 'project' => $project, 'deferLoad' => true ])
@endif
{{-- @if(auth()->user()->can('projects.update') && $project->can_update_status) @lang('Change step') @endif --}} @livewire('activity.model-activity-viewer', [ 'modelId' => $project->id, 'modelType' => $project->getMorphClass(), 'title' => __('Follow ups'), 'deferLoad' => true ]) {{-- @livewire('activity.activity-table', [ 'title' => __('Follow ups'), 'restrict' => ['subject_id' => $project->id, 'subject_type' => $project->getMorphClass()], 'params' => ['subject_id' => $project->id, 'subject_type' => $project->getMorphClass()], 'loader' => false, 'deferLoad' => true ]) --}}
@if(auth()->user()->is_bo && $project->owner)
@else
@endif
@endif @if(auth()->user()->is_bo || auth()->user()->can('projects.status.update'))
@lang('API requests')
@livewire('bank-apis.api-requests-table', [ 'restrict' => [ 'project_id' => $this->project->id ], 'loader' => false, 'deferLoad' => true ])
@endif @if(auth()->user()->is_bo || auth()->user()->can('projects.status.update'))
@livewire('projects.project-data-form', [ 'projectId' => $project->getRouteKey(), ])
@endif
{{ $project->ref }}
@if(auth()->user()->can('projects.update'))
    {{--
  • --}}
  • @if(!$project->client->is_lead)
  • @endif @if($project->client->is_lead)
  • @endif {{-- @if(!$project->client->associatedUser)
  • @endif @if($project->client->associatedUser)
  • @endif --}}
  • @if($project->can_delete)
  • @endif
@endif {{-- @if($this->selectedSimulation->exists)
@lang('Proposal')
@nf($this->selectedSimulation->credit_amount)
@lang('Amount')
{{ $this->selectedSimulation->duration}} mois
@lang('Duration')
{{ $this->selectedSimulation->rate }} %
@lang('Rate')
@nf($this->selectedSimulation->monthly)
@lang('Monthly')
@nf($this->selectedSimulation->total_fees)
@lang('Total fees')
{{ $this->project->getGains($this->selectedSimulation) }}
@lang('Gains')
@endif --}}
@lang('Partner')
@if( auth()->user()->can('projects.partner.update') || auth()->user()->hasRole('partner_manager') // && ! in_array($project->status?->project_status_id, [ProjectStatusId::DEBLOCAGE_FONDS(), ProjectStatusId::DOSSIER_COMMISSIONE()]) ) @endif
@include('partials.user.user-card', ['user' => $project->owner, 'emailLimit' => 30])
@lang('Analyst')
@if(auth()->user()->can('projects.partner.update')) @endif
@include('partials.user.user-card', ['user' => $project->analyst, 'emailLimit' => 30])
@lang('Details')
@lang('Project ID'):{{ $project->ref }}
@lang('Client'):{{ $project->client?->name_and_surname }}
@lang('Step'):{{ $project->status?->name }}
@lang('Created at'):{{ $project->created_at->format('d/m/Y H:i') }}
@if($project->primary_client->source)
@lang('Project Source'):{{ $project->primary_client->source->name }}
@endif