51 lines
2.4 KiB
PHP
51 lines
2.4 KiB
PHP
@if(!empty($__subscription) && env('APP_ENV') != 'demo')
|
|
@php
|
|
// Format dates safely
|
|
$start_date = !empty($__subscription->start_date) ? (function_exists('format_date') ? \format_date($__subscription->start_date) : \Carbon\Carbon::parse($__subscription->start_date)->format('Y-m-d')) : '';
|
|
$end_date = !empty($__subscription->end_date) ? (function_exists('format_date') ? \format_date($__subscription->end_date) : \Carbon\Carbon::parse($__subscription->end_date)->format('Y-m-d')) : '';
|
|
|
|
$popover_content = '<table class=\'table table-condensed\'>
|
|
<tr class=\'text-center\'>
|
|
<td colspan=\'2\'>
|
|
'.$__subscription->package_details['name'].'
|
|
</td>
|
|
</tr>
|
|
<tr class=\'text-center\'>
|
|
<td colspan=\'2\'>
|
|
'.$start_date.' - '.$end_date.'
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=\'2\'>
|
|
<i class=\'fa fa-check text-success\'></i>
|
|
'.($__subscription->package_details['location_count'] == 0 ? __('superadmin::lang.unlimited') : $__subscription->package_details['location_count']).'
|
|
'.__('business.business_locations').'
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=\'2\'>
|
|
<i class=\'fa fa-check text-success\'></i>
|
|
'.($__subscription->package_details['user_count'] == 0 ? __('superadmin::lang.unlimited') : $__subscription->package_details['user_count']).'
|
|
'.__('superadmin::lang.users').'
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=\'2\'>
|
|
<i class=\'fa fa-check text-success\'></i>
|
|
'.($__subscription->package_details['product_count'] == 0 ? __('superadmin::lang.unlimited') : $__subscription->package_details['product_count']).'
|
|
'.__('superadmin::lang.products').'
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=\'2\'>
|
|
<i class=\'fa fa-check text-success\'></i>
|
|
'.($__subscription->package_details['invoice_count'] == 0 ? __('superadmin::lang.unlimited') : $__subscription->package_details['invoice_count']).'
|
|
'.__('superadmin::lang.invoices').'
|
|
</td>
|
|
</tr>
|
|
|
|
</table>';
|
|
@endphp
|
|
<i class="fas fa-info-circle pull-left mt-10 cursor-pointer" style= "margin-top: 24px; color:white" aria-hidden="true" data-toggle="popover" data-html="true" title="@lang('superadmin::lang.active_package_description')" data-placement="right" data-trigger="hover" data-content="{!! $popover_content !!}">
|
|
</i>
|
|
@endif |