protected function getAuthorizationActions(AuthorizationContract $acl, $metric)
    {
        return collect($acl->actions()->get())->map(function ($slug) use ($metric) {
            $key = "orchestra/foundation::acl.{$metric}.{$slug}";
            $name = $this->translator->has($key) ? $this->translator->get($key) : Str::humanize($slug);

            return compact('slug', 'name');
        });
    }
protected function getAuthorizationActions(AuthorizationContract $acl, $metric)
    {
        return collect($acl->actions()->get())->map(function ($slug) use ($metric) {
            $key = "orchestra/foundation::acl.{$metric}.{$slug}";
            $name = $this->translator->has($key) ? $this->translator->get($key) : Str::humanize($slug);

            return compact('slug', 'name');
        });
    }
protected function getAuthorizationActions ( AuthorizationContract $ acl , $ metric ) { return collect ( $ acl -> actions ( ) -> get ( ) ) -> map ( function ( $ slug ) use ( $ metric ) { $ key = "orchestra/foundation::acl.{$metric}.{$slug}" ; $ name = $ this -> translator -> has ( $ key ) ? $ this -> translator -> get ( $ key ) : Str :: humanize ( $ slug ) ; return compact ( 'slug' , 'name' ) ; } ) ; }
Get authorization actions.

@param  \Orchestra\Contracts\Authorization\Authorization  $acl
@param  string  $metric

@return \Illuminate\Support\Collection
Get authorization actions .