Contact

@can('edit-media') @endcan
@if ($media->contacts->isEmpty())
Aucun contact associé à ce média.
@endif
@foreach ($media->contacts as $contact )
{{$contact->firstname}} {{$contact->lastname}}
@if ($contact->job) {{$contact->job}} @endif @if ($contact->phone) {{$contact->phone}} @endif @if ($contact->gsm) {{$contact->gsm}} @endif @if ($contact->email) {{$contact->email}} @endif
@can('edit-media')
@endcan
@if(!$loop->last)
@endif @endforeach
{{-- 4 stats globales --}}
{{ $media->operations_count }} Opérations
{{ number_format($media->operations_sum_costing_price ?? 0, 0, ',', ' ') }} € Frais Média
{{ number_format($media->operations_sum_agency_fees ?? 0, 0, ',', ' ') }} € Frais Agence
{{ number_format($media->operations_sum_total_price ?? 0, 0, ',', ' ') }} € Total CA
{{-- Détail par type de média --}} @if($statsByMediaType->isNotEmpty())

Détail par type de média

@foreach($media->types as $type) @if(isset($statsByMediaType[$type->id])) @php $s = $statsByMediaType[$type->id]; @endphp @endif @endforeach
Type Opérations Frais Média Frais Agence Total CA
{{ $type->name }} {{ $s['count'] }} {{ number_format($s['costing_price'], 0, ',', ' ') }} € {{ number_format($s['agency_fees'], 0, ',', ' ') }} € {{ number_format($s['total_price'], 0, ',', ' ') }} €
@endif
{{-- Modal création contact --}} {{-- Modals édition contacts --}} @foreach ($media->contacts as $contact) @endforeach