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

{{ _lang('Subscriptions') }}

{{ _lang('Manage organization plans, expiry and billing cycles.') }}

@include('partials.alerts')
{{ _lang('Active Organizations') }}

{{ $active }}

{{ _lang('Expiring in 7 Days') }}

{{ $expiringSoon }}

{{ _lang('Organization Subscriptions') }}
@forelse ($organizations as $organization) @empty @endforelse
{{ _lang('Organization') }} {{ _lang('Trial Ends') }} {{ _lang('Expires') }} {{ _lang('Status') }} {{ _lang('Actions') }}
{{ $organization->name }} {{ $organization->email }} {{ $organization->trial_ends_at ? $organization->trial_ends_at->format('d M Y') : '—' }} @if ($organization->subscription_ends_at) @if ($organization->subscription_ends_at->isPast()) {{ _lang('Expired') }} {{ $organization->subscription_ends_at->format('d M Y') }} @elseif ($organization->subscription_ends_at->lte(now()->addDays(7))) {{ $organization->subscription_ends_at->format('d M Y') }} @else {{ $organization->subscription_ends_at->format('d M Y') }} @endif @else @endif @if ($organization->status == 1) {{ _lang('Active') }} @else {{ _lang('Suspended') }} @endif
@csrf @method('PUT')
{{ _lang('No organizations found.') }}
@if ($organizations->hasPages()) @endif
@endsection