@extends('layouts.app') @section('title', 'Notifications') @section('content')

Notifications

@forelse ($notifiactions as $notifiaction) @if($notifiaction->type == 'App\Notifications\FollowCommunauty' || $notifiaction->type == 'App\Notifications\FollowCommunautyAccepted'|| $notifiaction->data['object'] == 'publish_communaute') @php $comm = new \App\Communauty; $comm->id = $notifiaction->data['communauty']['id']; $comm->name = $notifiaction->data['communauty']['name']; $comm->slug = $notifiaction->data['communauty']['slug']; $comm->img_url = $notifiaction->data['communauty']['img_url']; @endphp @endif @if($notifiaction->type == 'App\Notifications\FollowProject') @php $project = new \App\Project; $project->id = $notifiaction->data['project']['id']; $project->name = $notifiaction->data['project']['name']; $project->slug = $notifiaction->data['project']['slug']; $project->img_url = $notifiaction->data['project']['img_url']; @endphp @endif @if($notifiaction->data['object'] == 'demande_communaute' || $notifiaction->data['object'] == 'follow_project' || $notifiaction->data['object'] == 'publish_communaute' || $notifiaction->data['object'] == 'follow_evenement' || $notifiaction->data['object'] == 'suivre_membre' || $notifiaction->data['object'] == 'suivre_organisation' ) @php $user_ = new \App\User; $user_->id = $notifiaction->data['user']['id']; $user_->prenom = $notifiaction->data['user']['prenom']; $user_->nom = $notifiaction->data['user']['nom']; $user_->slug = $notifiaction->data['user']['slug']; $user_->photo = $notifiaction->data['user']['photo']; @endphp @endif @if($notifiaction->data['object'] == 'suivre_organisation') @php $organisation = new \App\Organisation; $organisation->id = $notifiaction->data['organisation']['id']; $organisation->nom = $notifiaction->data['organisation']['nom']; $organisation->slug = $notifiaction->data['organisation']['slug']; @endphp @endif @if($notifiaction->data['object'] == 'follow_evenement') @php $evenement = new \App\Evenement; $evenement->id = $notifiaction->data['evenement']['id']; $evenement->name = $notifiaction->data['evenement']['name']; $evenement->slug = $notifiaction->data['evenement']['slug']; //$project->img_url = $notifiaction->data['evenement']['photo']; @endphp @endif @if($notifiaction->data['object'] == 'demande_communaute')
@include('notifications.demande_communaute')
@endif @if($notifiaction->data['object'] == 'follow_project')
@include('notifications.follow_project')
@endif @if($notifiaction->data['object'] == 'demande_communaute_accepted')
@include('notifications.demande_communaute_accepted')
@endif @if($notifiaction->data['object'] == 'follow_evenement')
@include('notifications.follow_evenement')
@endif @if($notifiaction->data['object'] == 'publish_communaute')
@include('notifications.publish_communaute')
@endif @if($notifiaction->data['object'] == 'suivre_membre')
@include('notifications.suivre_membre')
@endif @if($notifiaction->data['object'] == 'suivre_organisation')
@include('notifications.suivre_organisation')
@endif @empty

Aucune notifiaction !

@endforelse
@endsection