@extends('layouts.app') @section('title', \App\Helpers\TranslationHelper::transFromDatabase('Add New Invoice', __('Add New Invoice'))) @push('styles') @endpush @php $company = \App\Models\Company::find(auth()->user()->company_id); $activeSubscription = \App\Models\Subscription::where('company_id', auth()->user()->company_id) ->where('status', 'active') ->where('subscription_end_date', '>=', now()) ->first(); $trialSubscription = \App\Models\Subscription::where('company_id', auth()->user()->company_id) ->where('status', 'trial') ->where('trial_end_date', '>=', now()) ->first(); $invoicesCount = \App\Models\CustomerInvoice::where('company_id', auth()->user()->company_id)->count(); $hasActiveSubscription = $activeSubscription || $trialSubscription; $invoicesRemaining = max(0, 30 - $invoicesCount); @endphp @section('content')
⚠️ لا يوجد اشتراك نشط حالياً
📋 عدد الفواتير المتبقية: {{ $invoicesRemaining }} من 30
💡 بعد انتهاء الفواتير المسموح بها، لن تتمكن من إنشاء فواتير جديدة إلا بتفعيل الاشتراك.
📞 يرجى التواصل مع مدير الحساب لتفعيل الاشتراك أو تجديد النسخة التجريبية.