@extends('layouts.app') @section('title', 'Connect - Subscription & Billing') @section('content') @if((isset($subscription) && $subscription->status === 'unpaid') || $tenant->status === 'unpaid') @endif

Active Plan

{{ $tenant->plan ?? 'Starter' }} Plan

@if(isset($subscription->plan)) {{ number_format($subscription->plan->price, 2) }} AED @else Free / Custom @endif

billing period: monthly
Status: {{ $subscription->status ?? 'active' }}
Max Employee Limit: {{ $tenant->employee_limit ?? 10 }} Employees
Started At: @if(isset($subscription->starts_at)) {{ \Carbon\Carbon::parse($subscription->starts_at)->format('d-M-Y') }} @else {{ \Carbon\Carbon::parse($tenant->created_at)->format('d-M-Y') }} @endif
Renews/Expires At: @if(isset($subscription->ends_at)) {{ \Carbon\Carbon::parse($subscription->ends_at)->format('d-M-Y') }} @elseif(isset($subscription)) Lifetime / Manual @else N/A @endif
@if(isset($subscription))
Auto Renew:
@csrf
Billing Cycle: {{ $subscription->billing_cycle ?? 'monthly' }}
@endif
Payment Method
@if($tenant->payment_method_saved) @endif
@if($tenant->payment_method_saved)
@if($tenant->card_brand === 'PayPal') {{ $tenant->card_last_four }} @else
{{ $tenant->card_brand }} ending in {{ $tenant->card_last_four }}
Expires {{ $tenant->card_expiry }}
@endif
@csrf @method('DELETE')
@else @endif

To request a plan upgrade or support concerning subscriptions, please contact our support desk or email support@glix.ae.

Billing Details

@csrf
Include your organization's VAT registration number to print it on system-generated billing invoices.

Billing Invoices

@forelse($invoices as $invoice) @empty @endforelse
Invoice Number Billing Date Amount Payment Method Status Actions
{{ $invoice->invoice_number }} {{ \Carbon\Carbon::parse($invoice->created_at)->format('d-M-Y') }} {{ number_format($invoice->amount, 2) }} {{ $invoice->currency ?? 'AED' }} {{ $invoice->payment_method ?? 'Stripe Card' }} @if($invoice->status === 'paid') Paid @elseif($invoice->status === 'unpaid') Unpaid @else {{ $invoice->status }} @endif Download
No billing invoices have been issued.

Available Packages

@foreach($plans as $plan) @php $features = []; if (!empty($plan->features)) { if (is_array($plan->features)) { $features = $plan->features; } elseif (is_string($plan->features)) { $decoded = json_decode($plan->features, true); if (is_string($decoded)) { $decoded = json_decode($decoded, true); } if (is_array($decoded)) { $features = $decoded; } } } $isCurrent = isset($subscription) && $subscription->plan_id == $plan->id; @endphp

{{ $plan->name }}

@if($isCurrent) Active @endif
{{ $plan->price > 0 ? number_format($plan->price, 0) . ' ' . $plan->currency . '/mo' : 'Free' }} {{ $plan->price_annual > 0 ? number_format($plan->price_annual / 12, 0) . ' ' . $plan->currency . '/mo' : 'Free' }}
Billed annually: {{ number_format($plan->price_annual, 0) }} {{ $plan->currency }}
Employee Limit: {{ $plan->employee_limit }}
    @foreach($features as $feat)
  • {{ $feat }}
  • @endforeach
@if($isCurrent && (!isset($subscription) || $subscription->status !== 'unpaid')) @else @php $sysSettings = \Illuminate\Support\Facades\DB::table('system_settings')->pluck('value', 'key')->toArray(); $stripeEnabled = ($sysSettings['payment_stripe_enabled'] ?? '1') === '1'; $paypalEnabled = ($sysSettings['payment_paypal_enabled'] ?? '1') === '1'; @endphp
@if($stripeEnabled)
@csrf
@endif @if($paypalEnabled)
@csrf
@endif @if(!$stripeEnabled && !$paypalEnabled)
Payments temporarily disabled.
@endif
@endif
@endforeach
@endsection