@extends('layouts.base') @section('content') @section('breadcrumb') @endsection
Abonnements

Mes abonnements

Gérez vos abonnements pour chaque application
@if(isset($subscriptions) && isset($application)) Créer un abonnement @endif Retour
@if(isset($subscriptions)) @foreach($subscriptions as $subscription)
{{ $subscription->name }}
Abonnement actuel
{{ $subscription->name }}
@if($subscription->description)

{{ $subscription->description }}

@endif
@php $monthlyPrice = $subscription->prices->where('type', 'price_monthly')->first(); $yearlyPrice = $subscription->prices->where('type', 'price_yearly')->first(); @endphp @if($monthlyPrice && $monthlyPrice->value)
Mensuel {{ number_format($monthlyPrice->value, 2, ',', ' ') }} €
@endif @if($yearlyPrice && $yearlyPrice->value)
Annuel {{ number_format($yearlyPrice->value, 2, ',', ' ') }} €
@endif
@endforeach @elseif(isset($applications) && $applications->isEmpty())
Vous n'avez accès à aucune application pour le moment.
@else @foreach($applications as $application)
{{ $application->name }}
Abonnement actuel
@if($application->subscription)
{{ $application->subscription->name }}
@if($application->subscription->description)

{{ $application->subscription->description }}

@endif
@if($application->getMonthlyPrice())
Mensuel {{ $application->getFormattedMonthlyPrice() }}
@endif @if($application->getYearlyPrice())
Annuel {{ $application->getFormattedYearlyPrice() }}
@endif
@else
Aucun abonnement associé
@endif
Informations
@if($application->subscription_created_at)
Date de début {{ $application->subscription_created_at->format('d/m/Y') }}
@endif @if($application->subscription_expires_at)
Date d'expiration {{ $application->subscription_expires_at->format('d/m/Y') }}
@endif @if($application->max_users)
Nombre maximum d'utilisateurs {{ $application->max_users }}
@endif @if(!$application->subscription_created_at && !$application->subscription_expires_at && !$application->max_users)
Aucune information disponible
@endif
@endforeach @endif
@endsection