{{-- * LaraClassifier - Classified Ads Web Application * Copyright (c) BeDigit. All Rights Reserved * * Website: https://laraclassifier.com * * LICENSE * ------- * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the inclusion * of the above copyright notice. If you Purchased from CodeCanyon, * Please read the full License from here - http://codecanyon.net/licenses/standard --}} @extends('layouts.master') @php $account_types ??= []; @endphp @section('content') @includeFirst([config('larapen.core.customizedViewPath') . 'common.spacer', 'common.spacer'])
@includeFirst([ config('larapen.core.customizedViewPath') . 'account.inc.sidebar', 'account.inc.sidebar', ])
@include('flash::message') @if (isset($errors) && $errors->any())
{{ t('oops_an_error_has_occurred') }}
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- Account Types --}} @php $allAccPerms = config('larapen.core.AccountPermissions', []); @endphp @foreach ($account_types as $account_type) @php $iCurAccT = data_get($user, 'acctType.id') === data_get($account_type, 'id'); $status = $iCurAccT ? 'Current' : (data_get($user, 'acctType.p_type.price') > data_get($account_type, 'p_type.price') ? 'Downgrade' : 'Upgrade'); @endphp

{{ data_get($account_type, 'name', '') }}

{{ $status }}
{{ 'This Account Have Following Permissions' }}
    @foreach (data_get($account_type, 'p_type.description_array', []) as $option)
  • {!! sprintf('- %s', $option) !!}
  • @endforeach @foreach (data_get($account_type, 'account_permissions', []) as $permission)
  • {!! sprintf('- %s', data_get($allAccPerms, $permission)) !!}
  • @endforeach
@endforeach
@endsection @section('after_scripts') @endsection