@extends('layouts.app') {{-- @section('head-needMapScript', 'ON') --}} @section('content')
{{ $activity->company->name }} {{$activity->name}}
@if (isset($activity->link0)) {{$activity->name}} @else {{$activity->name}} @endif {{$activity->price}} €

{{$activity->name}}

@if ($activity->note != null) {{$activity->note}} / 5 @include('components.star', ['note' => $activity->note]) @else Aucune note @endif | {{ \App\SubCategory::find($activity->sub_category_id)->category->name }} > {{ \App\SubCategory::find($activity->sub_category_id)->name }} | {{ $nb_de_commentaire ?? 0 }} commentaires

{{$activity->resume}}

@include('components.activity.btn_add_shopping', ['activity_id' => $activity->id])
  • Description
    Description
    {{$activity->description}}


  • Information
    Informations
    {{$activity->information}}


  • Entreprise
    {{$activity->company->name}}
    Email : {{$activity->company->email}}
    Téphone: {{$activity->company->phone}}
    SIRET : {{$activity->company->siret}}
    Adresse : {{$activity->company->adress1}} {{$activity->company->adress2 || ''}}, {{$activity->company->city->code_postal}} {{$activity->company->city->name}}



@php $tab_pic = array(); if ( isset($activity->link0) && $activity->link0 != '') { echo '

Photo :

'; $tab_pic[] = $activity->link0; } if ( isset($activity->link1) && $activity->link1 != '') { $tab_pic[] = $activity->link1; } if ( isset($activity->link2) && $activity->link2 != '') { $tab_pic[] = $activity->link2; } @endphp @if(sizeof ($tab_pic) == 1)
Photo {{$activity->name}}
@elseif(sizeof ($tab_pic) == 2) @foreach($tab_pic as $key => $img)
Photo {{$key}} {{$activity->name}}
@endforeach @elseif(sizeof ($tab_pic) == 3) @foreach($tab_pic as $key => $img)
Photo {{$key}} {{$activity->name}}
@endforeach @endif

Commentaires :

@php $test = false; @endphp @forelse($activity->comments as $comment) @if($comment->state == 1) @php $test = true @endphp
{{$comment->title}} | {{$comment->note}} / 5 @include('components.star', ['note' => $comment->note]) | {{$comment->created_at}}

{{$comment->message}}

@endif @empty @php $test = true @endphp

Il n'y a pas encore de commentaire pour cette activité, déposez un commentaire ici

@endforelse @if($test == false)

Il n'y a pas encore de commentaire pour cette activité, déposez un commentaire ici

@else

Vous avez participé à cette activité ? Déposer un commentaire ici !

@endif
@endsection