@extends('layouts.app') @section('title', __('superadmin::lang.superadmin') . ' | ' . __('superadmin::lang.packages')) @section('content') @include('superadmin::layouts.nav')
@include('superadmin::layouts.partials.currency')
@lang('superadmin::lang.all_packages')

@foreach ($packages as $package) @php $img = ($loop->index > 3) ? 3 : $loop->index; @endphp
{{$package->name}} @if($package->mark_package_as_popular == 1)
@lang('superadmin::lang.popular')
@endif
@if($package->is_private) @endif @if($package->is_one_time) @endif @if($package->is_active == 1) @lang('superadmin::lang.active') @else @lang('superadmin::lang.inactive') @endif

@if($package->location_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->location_count}} @endif @lang('business.business_locations')
@if($package->user_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->user_count}} @endif @lang('superadmin::lang.users')
@if($package->product_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->product_count}} @endif @lang('superadmin::lang.products')
@if($package->invoice_count == 0) @lang('superadmin::lang.unlimited') @else {{$package->invoice_count}} @endif @lang('superadmin::lang.invoices')
@if($package->trial_days != 0)
{{$package->trial_days}} @lang('superadmin::lang.trial_days')
@endif @if(!empty($package->custom_permissions)) @foreach($package->custom_permissions as $permission => $value) @isset($permission_formatted[$permission]) {{$permission_formatted[$permission]}}
@endisset @endforeach @endif

@if($package->price != 0) {{$package->price}} / {{$package->interval_count}} {{__('lang_v1.' . $package->interval)}} @else @lang('superadmin::lang.free_for_duration', ['duration' => $package->interval_count . ' ' . __('lang_v1.' . $package->interval)]) @endif


{{$package->description}}
@if($loop->iteration%3 == 0)
@endif @endforeach
{{ $packages->links() }}
@endsection