@extends('layouts.app') @section('title', __('superadmin::lang.superadmin') . ' | ' . __('superadmin::lang.packages')) @section('content')

@lang('superadmin::lang.packages') @lang('superadmin::lang.all_packages')

@include('superadmin::layouts.partials.currency')
@foreach ($packages as $package)

{{$package->name}}

@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

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