@extends('layouts.admin') @section('title', $role->exists ? 'Edit Role' : 'Create Role') @section('content') @php $posted = old('abilities'); $ticked = fn (array $ability) => is_array($posted) ? in_array($ability['key'], $posted, true) : $isTicked($ability); @endphp
@endsection @push('scripts') @endpush