@extends('layouts.app') @section('title', 'Tarifs ' . $user->userType->type) @section('content')

Tarifs {{ $user->userType->type }}

@foreach ($regions as $region)
@php $firstPropertyRegion = 0; @endphp @if (isset($user->userType->priceSheets)) @foreach ($user->userType->priceSheets as $priceSheet) @if ($priceSheet->property->region == $region) @if (($priceSheet->property->salesDepartments->intersect($user->salesDepartments))->isNotEmpty()) @if ($firstPropertyRegion == 0) @php $firstPropertyRegion = 1; @endphp

{{ $region->name }}

@endif
{{ $priceSheet->property->name}}
@if (isset($priceSheet->property->dataSheet)) Télécharger fiche technique @else Pas de fiche technique @endif
@endif @endif @endforeach @endif
@endforeach Télécharger tous les tarifs
@endsection