@extends('layouts.main.main') @section('content')
@can('éditer une fiche intermittent') Modifier @endcan @can('créer un intermittent') Nouvel intermittent @endcan

{{ $intermittent->fullName }}

@if($intermittent->occupation) {{ $intermittent->occupation }}
@endif @if($intermittent->phone) {{ $intermittent->phone }} @endif @if($intermittent->email) - {{ $intermittent->email }}
@endif @can('voir le tarif et le coût d\'un intermittent') Tarif jour : {{ ($intermittent->daily_price > 0) ? ' ' . number_format($intermittent->daily_price, 2, '.', ' ').' €' : ' -' }}
Côut Eyesight jour : {{ ($intermittent->daily_cost > 0) ? ' ' . number_format($intermittent->daily_cost, 2, '.', ' ').' €' : ' -' }}
@endcan @if($intermittent->issteward == 1)

Régisseur

@endif

Projets

@if($intermittent->singleProjects->count() > 0)
@foreach ($intermittent->singleProjects as $project) @endforeach
Référence Date Client
{{ $project->projectref }} {{ date('d/m/Y', strtotime($project->event_date_n_time)) }} {{ $project->customer->name }}
@else Cet intermittent n'est lié à aucun projet pour l'instant. @endif
@if($intermittent->produces->count() > 0)

Projets en prod

@foreach ($intermittent->produces as $project) @endforeach
Référence Date Client
{{ $project->project->projectref }} {{ date('d/m/Y', strtotime($project->project->event_date_n_time)) }} {{ $project->project->customer->name }}
@endif @if($intermittent->manages->count() > 0)

Projets en gestion

@foreach ($intermittent->manages as $project) @endforeach
Référence Date Client
{{ $project->project->projectref }} {{ date('d/m/Y', strtotime($project->project->event_date_n_time)) }} {{ $project->project->customer->name }}
@endif @if($intermittent->archis->count() > 0)

Projets en archi

@foreach ($intermittent->archis as $project) @endforeach
Référence Date Client
{{ $project->project->projectref }} {{ date('d/m/Y', strtotime($project->project->event_date_n_time)) }} {{ $project->project->customer->name }}
@endif
@endsection