@extends('adminlte::page')
@section('content_header')
Listado de roles
@stop
@section('content')
| Nro |
Nombre del rol |
Accion |
@php
// Definir el orden exacto deseado
$customOrder = [
'GERENTE' => 1,
'JEFE DESARROLLO' => 2,
'JEFE SOPORTE' => 3,
'JEFE OYM' => 4,
'ANALISTA DE GERENTE' => 5,
'ANALISTA SOPORTE TECNICO' => 6,
'ANALISTA PROGRAMADOR I' => 7,
'ANALISTA DE SISTEMA' => 8,
'ASISTENTE DE DESARROLLO' => 9,
'ASISTENTE DE SOPORTE' => 10
];
// Ordenar los roles según el orden personalizado
$orderedRoles = $roles->sortBy(function($role) use ($customOrder) {
return $customOrder[$role->name] ?? 999;
});
$contador = 1;
@endphp
@foreach ($orderedRoles as $role)
| {{ $contador++}} |
{{ $role->name }} |
|
@endforeach
@stop
@section('css')
@stop
@section('js')
@stop