69 lines
2.7 KiB
PHP
69 lines
2.7 KiB
PHP
<div class="row">
|
|
<div class="col-12 col-md-6">
|
|
@include('platform.user_profile::user',['name'=>$user->name, 'about'=>$user->about])
|
|
</div>
|
|
<div class="col-12 col-md-6">
|
|
@if(config('platform.company.enabled'))
|
|
@include('platform.user_profile::company')
|
|
@endif
|
|
</div>
|
|
<div class="col-12 col-md-12">
|
|
@if(config('platform.company.enabled'))
|
|
@include('platform.user_profile::companylist')
|
|
@endif
|
|
</div>
|
|
</div>
|
|
{{--<?php--}}
|
|
{{--$roles = \A7kz\Platform\Models\UniModel::model('core_roles')->get();--}}
|
|
|
|
{{--$rows = \A7kz\Platform\Models\UniModel::model('core_applications')->get(['name','description']);--}}
|
|
{{--$applications = [];--}}
|
|
{{--foreach ($rows as $row){--}}
|
|
{{-- $applications[$row->name] = $row->description;--}}
|
|
{{--}--}}
|
|
|
|
{{--$actions = [--}}
|
|
{{-- 'default'=>'Просмотр списка значений',--}}
|
|
{{-- 'add'=>'Создание записи',--}}
|
|
{{-- 'edit' =>'Редактирование записи',--}}
|
|
{{-- 'delete'=>'Удаление записи',--}}
|
|
{{-- 'show' => 'Просмотр записи',--}}
|
|
{{-- 'open'=>'Открыть документ',--}}
|
|
{{-- 'edit_tree' => 'Редактировать дерево',--}}
|
|
{{-- 'terminate_document_impact' => 'Прекращение документа',--}}
|
|
{{-- 'stop_deductions' => 'прекратить отчисления',--}}
|
|
{{-- 'excel' => 'Генерация excel документа',--}}
|
|
{{-- 'report' => 'Отчет',--}}
|
|
{{-- 'print' => 'Версия для печати',--}}
|
|
{{-- 'lock' => 'Блокировка',--}}
|
|
{{-- 'generate' => 'Сгенерировать',--}}
|
|
{{-- 'accept' => 'Применить',--}}
|
|
{{-- 'decline' => 'Отклонить',--}}
|
|
{{-- 'save' => 'Сохранить запись',--}}
|
|
|
|
{{--]--}}
|
|
|
|
{{--?>--}}
|
|
{{--<div class="row">--}}
|
|
{{-- <div class="col-12">--}}
|
|
{{-- <table class="table">--}}
|
|
{{-- <tr>--}}
|
|
{{-- <th>Роль</th><th>Приложение</th><th>Доступное действие</th>--}}
|
|
{{-- </tr>--}}
|
|
{{-- @foreach ($roles as $role)--}}
|
|
{{-- <?php--}}
|
|
{{-- $apps = json_decode($role->actions, true);--}}
|
|
{{-- ?>--}}
|
|
{{-- @foreach($apps as $app_code=>$app)--}}
|
|
{{-- @foreach($app as $action=>$v)--}}
|
|
{{-- <tr>--}}
|
|
{{-- <td>{{$role->name}}</td><td>{{$applications[$app_code] ?? $app_code}}</td><td>{{$actions[$action] ?? $action}}</td>--}}
|
|
{{-- </tr>--}}
|
|
{{-- @endforeach--}}
|
|
{{-- @endforeach--}}
|
|
|
|
{{-- @endforeach--}}
|
|
{{-- </table>--}}
|
|
{{-- </div>--}}
|
|
{{--</div>--}}
|