@extends('backend.layouts.app') @section('content')
{{translate('Role Information')}}
@csrf
@php $roleForTranslation = \App\Models\Role::where('id',$role->id)->first(); @endphp
{{ translate('Permissions') }}

@php $permission_groups = \App\Models\Permission::all()->groupBy('section'); $addons = array("offline_payment", "club_point", "pos_system", "paytm", "seller_subscription", "otp_system", "refund_request", "affiliate_system", "african_pg", "delivery_boy", "auction", "wholesale"); @endphp @foreach ($permission_groups as $key => $permission_group) @php $show_permission_group = true; if(in_array($permission_group[0]['section'], $addons)){ if (addon_is_activated($permission_group[0]['section']) == false) { $show_permission_group = false; } } @endphp @if($show_permission_group)
  • {{ translate(Str::headline($permission_group[0]['section'])) }}
  • @foreach ($permission_group as $key => $permission)
    @endforeach
@endif @endforeach
@endsection