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

Gestion des applications partenaires

Liste des applications et des utilisateurs associés

Nouvelle application
Liste des applications
@forelse($applications as $app) @empty @endforelse
Nom Slug Entreprise Domaine Prix Clients Prix Abonnements Nb utilisateurs associés Date de début Date de fin Statut
{{ $app->name }} {{ $app->slug }} @if($app->company) {{ $app->company->name }} @else @endif {{ $app->domain }} @php $monthlyPrice = $app->prices->where('type', 'price_monthly')->first(); $yearlyPrice = $app->prices->where('type', 'price_yearly')->first(); @endphp
@if($monthlyPrice || $yearlyPrice)
Mensuel: @if($monthlyPrice && $monthlyPrice->value) {{ number_format($monthlyPrice->value, 2) }} € @else Gratuit @endif
Annuel: @if($yearlyPrice && $yearlyPrice->value) {{ number_format($yearlyPrice->value, 2) }} € @else Gratuit @endif
@else Non défini @endif
@if($app->subscription) @php $subMonthlyPrice = $app->subscription->prices->where('type', 'price_monthly')->first(); $subYearlyPrice = $app->subscription->prices->where('type', 'price_yearly')->first(); @endphp
{{ $app->subscription->name }}: @if($subMonthlyPrice || $subYearlyPrice) @if($subMonthlyPrice && $subMonthlyPrice->value) {{ number_format($subMonthlyPrice->value, 2) }} € @endif @if($subMonthlyPrice && $subMonthlyPrice->value && $subYearlyPrice && $subYearlyPrice->value) / @endif @if($subYearlyPrice && $subYearlyPrice->value) {{ number_format($subYearlyPrice->value, 2) }} € @endif @else Gratuit @endif
@else Aucun abonnement @endif
@if($app->users->count()) {{ $app->users->count() }} @else Aucun utilisateur @endif @if($app->subscription_created_at)
{{ $app->subscription_created_at->format('d/m/Y') }}
@else Non défini @endif
@if($app->subscription_expires_at)
{{ $app->subscription_expires_at->format('d/m/Y') }}
@else Non défini @endif
@if($app->is_active) Active @else Inactive @endif
Aucune application
@if($applications->hasPages())
Affichage de {{ $applications->firstItem() }} à {{ $applications->lastItem() }} sur {{ $applications->total() }} résultats
@endif
@endsection