コード例 #1
0
ファイル: routes.php プロジェクト: Aglok/upbrain
<?php

AdminRouter::get('', ['as' => 'admin.home', function () {
    $content = 'Define your dashboard here.';
    return Admin::view($content, 'Dashboard');
}]);
AdminRouter::get('', ['as' => 'admin.user', function () {
    $content = AdminAuth::user()->name;
    return Admin::view($content, 'Admin');
}]);
//Смена шаблона админки(сейчас не работает надо исправлять шаблоны blade в admin-lte.template)
AdminRouter::get('/template/{template}', ['as' => 'admin.change-template', function ($template) {
    if ($template == 0) {
        $cookie = cookie('admin-template', $template, -1);
    } else {
        $cookie = cookie('admin-template', $template);
    }
    return back()->withCookie($cookie);
}]);
AdminRouter::post('group', ['as' => 'group', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getUsers']);
コード例 #2
0
ファイル: menu.php プロジェクト: ateszki/petrimprentas
<?php

/*
 * Describe your menu here.
 *
 * There is some simple examples what you can use:
 *
 * 		Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\AdminController@getIndex');
 * 		Admin::menu(User::class)->icon('fa-user');
 * 		Admin::menu()->label('Menu with subitems')->icon('fa-book')->items(function ()
 * 		{
 * 			Admin::menu(\Foo\Bar::class)->icon('fa-sitemap');
 * 			Admin::menu('\Foo\Baz')->label('Overwrite model title');
 * 			Admin::menu()->url('my-page')->label('My custom page')->uses('\MyController@getMyPage');
 * 		});
 */
AdminRouter::get('/', function () {
    return redirect('admin/ordens');
});
//Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\SleepingOwl\Admin\Controllers\DummyController@getIndex');
Admin::menu(App\Imprenta::class)->icon('fa-stack-overflow');
Admin::menu(App\Orden::class)->icon('fa-file-text-o');
コード例 #3
0
ファイル: menu.php プロジェクト: ateszki/nh
<?php

/*
 * Describe your menu here.
 *
 * There is some simple examples what you can use:
 *
 * 		Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\AdminController@getIndex');
 * 		Admin::menu(User::class)->icon('fa-user');
 * 		Admin::menu()->label('Menu with subitems')->icon('fa-book')->items(function ()
 * 		{
 * 			Admin::menu(\Foo\Bar::class)->icon('fa-sitemap');
 * 			Admin::menu('\Foo\Baz')->label('Overwrite model title');
 * 			Admin::menu()->url('my-page')->label('My custom page')->uses('\MyController@getMyPage');
 * 		});
 */
//Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\SleepingOwl\Admin\Controllers\DummyController@getIndex');
//Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\AdminController@getIndex');
AdminRouter::get('/', function () {
    return redirect('admin/pedidos');
});
Admin::menu(App\User::class)->icon('fa-user');
Admin::menu(App\Pedido::class)->icon('fa-shopping-cart');
Admin::menu(App\Ficha::class)->icon('fa-file-pdf-o');
Admin::menu(App\ColorOrden::class)->icon('fa-sort-numeric-asc');
Admin::menu(App\Accesorio::class)->icon('fa-cut');
コード例 #4
0
ファイル: bootstrap.php プロジェクト: Aglok/upbrain
<?php

/*
 * Describe you custom displays, columns and form items here.
 *
 *		Display::register('customDisplay', '\Foo\Bar\MyCustomDisplay');
 *
 *		Column::register('customColumn', '\Foo\Bar\MyCustomColumn');
 *
 * 		FormItem::register('customElement', \Foo\Bar\MyCustomElement::class);
 *
 */
//AdminRouter::post('students/{student_id}/edit', '\App\Models\Student');
AdminRouter::post('process/group', ['as' => 'group', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getUsers']);
AdminRouter::post('process/user', ['as' => 'user', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getStages']);
AdminRouter::post('process/stage', ['as' => 'stage', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getProgress']);
AdminRouter::post('process/task', ['as' => 'task', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getTasks']);
AdminRouter::post('process/user_progress', ['as' => 'user_progress', 'uses' => '\\App\\Http\\Controllers\\ProcessController@userProgress']);
AdminRouter::get('process/{set_id}', ['as' => 'process/{set_id}', 'uses' => '\\App\\Http\\Controllers\\ProcessController@getTable']);
AdminRouter::post('process/save', ['as' => 'save', 'uses' => '\\App\\Http\\Controllers\\ProcessController@saveProcess']);
コード例 #5
0
ファイル: menu.php プロジェクト: ateszki/caesoweb
<?php

/*
 * Describe your menu here.
 *
 * There is some simple examples what you can use:
 *
 * 		Admin::menu()->url('/')->label('Start page')->icon('fa-dashboard')->uses('\AdminController@getIndex');
 * 		Admin::menu(User::class)->icon('fa-user');
 * 		Admin::menu()->label('Menu with subitems')->icon('fa-book')->items(function ()
 * 		{
 * 			Admin::menu(\Foo\Bar::class)->icon('fa-sitemap');
 * 			Admin::menu('\Foo\Baz')->label('Overwrite model title');
 * 			Admin::menu()->url('my-page')->label('My custom page')->uses('\MyController@getMyPage');
 * 		});
 */
AdminRouter::get('/', function () {
    return redirect('admin/noticias');
});
Admin::menu(App\Noticia::class)->icon('fa-newspaper-o');
Admin::menu(App\User::class)->icon('fa-user-o')->label('Usuarios Bolsa trabajo');
Admin::menu(App\Curriculum::class)->icon('fa-group-o')->label('Postulantes Bolsa trabajo');
コード例 #6
0
ファイル: bootstrap.php プロジェクト: procoders/printrock
<?php

/*
 * Describe you custom columns and form items here.
 *
 * There is some simple examples what you can use:
 *
 *		Column::register('customColumn', '\Foo\Bar\MyCustomColumn');
 *
 * 		FormItem::register('customElement', \Foo\Bar\MyCustomElement::class);
 *
 * 		FormItem::register('otherCustomElement', function (\Eloquent $model)
 * 		{
 *			AssetManager::addStyle(URL::asset('css/style-to-include-on-page-with-this-element.css'));
 *			AssetManager::addScript(URL::asset('js/script-to-include-on-page-with-this-element.js'));
 * 			if ($model->exists)
 * 			{
 * 				return 'My edit code.';
 * 			}
 * 			return 'My custom element code';
 * 		});
 */
FormItem::register('descriptions', App\AdminCustom\Forms\LanguagesFields::class);
FormItem::register('images', App\AdminCustom\Forms\ImagesFields::class);
FormItem::register('items', App\AdminCustom\Forms\Order\Items::class);
Column::register('image', App\AdminCustom\Column\ImageColumn::class);
AdminRouter::get('/customer/photo/{id}/delete', 'App\\Http\\Controllers\\AjaxController@deletePhoto');