Replacing URL::route() by route() helper

parent fa617afd
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('media::media.title.edit media') }} <small>{{ $file->filename }}</small> {{ trans('media::media.title.edit media') }} <small>{{ $file->filename }}</small>
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.media.media.index') }}">{{ trans('media::media.title.media') }}</a></li> <li><a href="{{ route('admin.media.media.index') }}">{{ trans('media::media.title.media') }}</a></li>
<li class="active">{{ trans('media::media.title.edit media') }}</li> <li class="active">{{ trans('media::media.title.edit media') }}</li>
</ol> </ol>
@stop @stop
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
@tags('asgardcms/media', $file) @tags('asgardcms/media', $file)
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.media.media.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.media.media.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
</div> {{-- end nav-tabs-custom --}} </div> {{-- end nav-tabs-custom --}}
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('menu::menu.titles.create menu item') }} {{ trans('menu::menu.titles.create menu item') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li> <li><a href="{{ route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li>
<li>{{ trans('menu::menu.breadcrumb.create menu item') }}</li> <li>{{ trans('menu::menu.breadcrumb.create menu item') }}</li>
</ol> </ol>
@stop @stop
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.create') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.create') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.menu.menu.edit', [$menu->id])}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.menu.menu.edit', [$menu->id])}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('menu::menu.titles.edit menu item') }} {{ trans('menu::menu.titles.edit menu item') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li> <li><a href="{{ route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li>
<li>{{ trans('menu::menu.breadcrumb.edit menu item') }}</li> <li>{{ trans('menu::menu.breadcrumb.edit menu item') }}</li>
</ol> </ol>
@stop @stop
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.menu.menu.edit', [$menu->id])}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.menu.menu.edit', [$menu->id])}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('menu::menu.titles.create menu') }} {{ trans('menu::menu.titles.create menu') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li> <li><a href="{{ route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li>
<li>{{ trans('menu::menu.breadcrumb.create menu') }}</li> <li>{{ trans('menu::menu.breadcrumb.create menu') }}</li>
</ol> </ol>
@stop @stop
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.create') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.create') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.menu.menu.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.menu.menu.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('menu::menu.titles.edit menu') }} {{ trans('menu::menu.titles.edit menu') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li> <li><a href="{{ route('admin.menu.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li>
<li>{{ trans('menu::menu.breadcrumb.edit menu') }}</li> <li>{{ trans('menu::menu.breadcrumb.edit menu') }}</li>
</ol> </ol>
@stop @stop
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="row"> <div class="row">
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;"> <div class="btn-group pull-right" style="margin: 0 15px 15px 0;">
<a href="{{ URL::route('dashboard.menuitem.create', [$menu->id]) }}" class="btn btn-primary btn-flat"> <a href="{{ route('dashboard.menuitem.create', [$menu->id]) }}" class="btn btn-primary btn-flat">
<i class="fa fa-pencil"></i> {{ trans('menu::menu.button.create menu item') }} <i class="fa fa-pencil"></i> {{ trans('menu::menu.button.create menu item') }}
</a> </a>
</div> </div>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.menu.menu.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.menu.menu.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('menu::menu.titles.menu') }} {{ trans('menu::menu.titles.menu') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('menu::menu.breadcrumb.menu') }}</li> <li class="active">{{ trans('menu::menu.breadcrumb.menu') }}</li>
</ol> </ol>
@stop @stop
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="row"> <div class="row">
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;"> <div class="btn-group pull-right" style="margin: 0 15px 15px 0;">
<a href="{{ URL::route('admin.menu.menu.create') }}" class="btn btn-primary btn-flat"> <a href="{{ route('admin.menu.menu.create') }}" class="btn btn-primary btn-flat">
<i class="fa fa-pencil"></i> {{ trans('menu::menu.button.create menu') }} <i class="fa fa-pencil"></i> {{ trans('menu::menu.button.create menu') }}
</a> </a>
</div> </div>
...@@ -38,18 +38,18 @@ ...@@ -38,18 +38,18 @@
<?php foreach ($menus as $menu): ?> <?php foreach ($menus as $menu): ?>
<tr> <tr>
<td> <td>
<a href="{{ URL::route('admin.menu.menu.edit', [$menu->id]) }}"> <a href="{{ route('admin.menu.menu.edit', [$menu->id]) }}">
{{ $menu->name }} {{ $menu->name }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.menu.menu.edit', [$menu->id]) }}"> <a href="{{ route('admin.menu.menu.edit', [$menu->id]) }}">
{{ $menu->title }} {{ $menu->title }}
</a> </a>
</td> </td>
<td> <td>
<div class="btn-group"> <div class="btn-group">
<a href="{{ URL::route('admin.menu.menu.edit', [$menu->id]) }}" class="btn btn-default btn-flat"><i class="glyphicon glyphicon-pencil"></i></a> <a href="{{ route('admin.menu.menu.edit', [$menu->id]) }}" class="btn btn-default btn-flat"><i class="glyphicon glyphicon-pencil"></i></a>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $menu->id }}"><i class="glyphicon glyphicon-trash"></i></button> <button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $menu->id }}"><i class="glyphicon glyphicon-trash"></i></button>
</div> </div>
</td> </td>
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace Modules\Menu\Services; namespace Modules\Menu\Services;
use Illuminate\Support\Facades\URL;
class MenuRenderer class MenuRenderer
{ {
/** /**
...@@ -48,7 +46,7 @@ class MenuRenderer ...@@ -48,7 +46,7 @@ class MenuRenderer
$this->menu .= '<ol class="dd-list">'; $this->menu .= '<ol class="dd-list">';
foreach ($items as $item) { foreach ($items as $item) {
$this->menu .= "<li class=\"dd-item\" data-id=\"{$item->id}\">"; $this->menu .= "<li class=\"dd-item\" data-id=\"{$item->id}\">";
$editLink = URL::route('dashboard.menuitem.edit', [$this->menuId, $item->id]); $editLink = route('dashboard.menuitem.edit', [$this->menuId, $item->id]);
$style = $item->isRoot() ? 'none' : 'inline'; $style = $item->isRoot() ? 'none' : 'inline';
$this->menu .= <<<HTML $this->menu .= <<<HTML
<div class="btn-group" role="group" aria-label="Action buttons" style="display: {$style}"> <div class="btn-group" role="group" aria-label="Action buttons" style="display: {$style}">
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('page::pages.create page') }} {{ trans('page::pages.create page') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.page.page.index') }}">{{ trans('page::pages.pages') }}</a></li> <li><a href="{{ route('admin.page.page.index') }}">{{ trans('page::pages.pages') }}</a></li>
<li class="active">{{ trans('page::pages.create page') }}</li> <li class="active">{{ trans('page::pages.create page') }}</li>
</ol> </ol>
@stop @stop
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('page::pages.edit page') }} {{ trans('page::pages.edit page') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.page.page.index') }}">{{ trans('page::pages.pages') }}</a></li> <li><a href="{{ route('admin.page.page.index') }}">{{ trans('page::pages.pages') }}</a></li>
<li class="active">{{ trans('page::pages.edit page') }}</li> <li class="active">{{ trans('page::pages.edit page') }}</li>
</ol> </ol>
@stop @stop
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('page::pages.pages') }} {{ trans('page::pages.pages') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('page::pages.pages') }}</li> <li class="active">{{ trans('page::pages.pages') }}</li>
</ol> </ol>
@stop @stop
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="#"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('admin.setting.settings.index') }}"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.settings') }}</a></li> <li><a href="{{ route('admin.setting.settings.index') }}"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.settings') }}</a></li>
<li class="active"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.module settings', ['module' => ucfirst($currentModule)]) }}</li> <li class="active"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.module settings', ['module' => ucfirst($currentModule)]) }}</li>
</ol> </ol>
@stop @stop
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<ul class="nav nav-list"> <ul class="nav nav-list">
<?php foreach ($modulesWithSettings as $module => $settings): ?> <?php foreach ($modulesWithSettings as $module => $settings): ?>
<li> <li>
<a href="{{ URL::route('dashboard.module.settings', [$module]) }}" <a href="{{ route('dashboard.module.settings', [$module]) }}"
class="{{ $module === $currentModule->getName() ? 'active' : '' }}"> class="{{ $module === $currentModule->getName() ? 'active' : '' }}">
{{ ucfirst($module) }} {{ ucfirst($module) }}
<small class="badge pull-right bg-blue">{{ count($settings) }}</small> <small class="badge pull-right bg-blue">{{ count($settings) }}</small>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<?php endif; ?> <?php endif; ?>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('core::core.button.update') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.setting.settings.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.setting.settings.index')}}"><i class="fa fa-times"></i> {{ trans('core::core.button.cancel') }}</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('user::users.api-keys') }} {{ trans('user::users.api-keys') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('user::users.api-keys') }}</li> <li class="active">{{ trans('user::users.api-keys') }}</li>
</ol> </ol>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('user::users.title.edit-profile') }} {{ trans('user::users.title.edit-profile') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('user::users.breadcrumb.edit-profile') }}</li> <li class="active">{{ trans('user::users.breadcrumb.edit-profile') }}</li>
</ol> </ol>
@stop @stop
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
@section('content-header') @section('content-header')
<h1>New Role</h1> <h1>New Role</h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="{{ URL::route('admin.user.role.index') }}">{{ trans('user::roles.breadcrumb.roles') }}</a></li> <li class=""><a href="{{ route('admin.user.role.index') }}">{{ trans('user::roles.breadcrumb.roles') }}</a></li>
<li class="active">{{ trans('user::roles.breadcrumb.new') }}</li> <li class="active">{{ trans('user::roles.breadcrumb.new') }}</li>
</ol> </ol>
@stop @stop
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.create') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.create') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.user.role.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.user.role.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('user::roles.title.edit') }} <small>{{ $role->name }}</small> {{ trans('user::roles.title.edit') }} <small>{{ $role->name }}</small>
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="{{ URL::route('admin.user.role.index') }}">{{ trans('user::roles.breadcrumb.roles') }}</a></li> <li class=""><a href="{{ route('admin.user.role.index') }}">{{ trans('user::roles.breadcrumb.roles') }}</a></li>
<li class="active">{{ trans('user::roles.breadcrumb.edit') }}</li> <li class="active">{{ trans('user::roles.breadcrumb.edit') }}</li>
</ol> </ol>
@stop @stop
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<ul> <ul>
<?php foreach ($role->users as $user): ?> <?php foreach ($role->users as $user): ?>
<li> <li>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}">{{ $user->present()->fullname() }}</a> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">{{ $user->present()->fullname() }}</a>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.update') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.update') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.user.role.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.user.role.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a>
</div> </div>
</div><!-- /.tab-content --> </div><!-- /.tab-content -->
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('user::roles.title.roles') }} {{ trans('user::roles.title.roles') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('user::roles.breadcrumb.roles') }}</li> <li class="active">{{ trans('user::roles.breadcrumb.roles') }}</li>
</ol> </ol>
@stop @stop
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="row"> <div class="row">
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;"> <div class="btn-group pull-right" style="margin: 0 15px 15px 0;">
<a href="{{ URL::route('admin.user.role.create') }}" class="btn btn-primary btn-flat" style="padding: 4px 10px;"> <a href="{{ route('admin.user.role.create') }}" class="btn btn-primary btn-flat" style="padding: 4px 10px;">
<i class="fa fa-pencil"></i> {{ trans('user::roles.button.new-role') }} <i class="fa fa-pencil"></i> {{ trans('user::roles.button.new-role') }}
</a> </a>
</div> </div>
...@@ -39,17 +39,17 @@ ...@@ -39,17 +39,17 @@
<?php foreach ($roles as $role): ?> <?php foreach ($roles as $role): ?>
<tr> <tr>
<td> <td>
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}"> <a href="{{ route('admin.user.role.edit', [$role->id]) }}">
{{ $role->id }} {{ $role->id }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}"> <a href="{{ route('admin.user.role.edit', [$role->id]) }}">
{{ $role->name }} {{ $role->name }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}"> <a href="{{ route('admin.user.role.edit', [$role->id]) }}">
{{ $role->created_at }} {{ $role->created_at }}
</a> </a>
</td> </td>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('user::users.title.new-user') }} {{ trans('user::users.title.new-user') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="{{ URL::route('admin.user.user.index') }}">{{ trans('user::users.breadcrumb.users') }}</a></li> <li class=""><a href="{{ route('admin.user.user.index') }}">{{ trans('user::users.breadcrumb.users') }}</a></li>
<li class="active">{{ trans('user::users.breadcrumb.new') }}</li> <li class="active">{{ trans('user::users.breadcrumb.new') }}</li>
</ol> </ol>
@stop @stop
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.create') }}</button> <button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.create') }}</button>
<a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('admin.user.user.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a> <a class="btn btn-danger pull-right btn-flat" href="{{ route('admin.user.user.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
{{ trans('user::users.title.edit-user') }} <small>{{ $user->present()->fullname() }}</small> {{ trans('user::users.title.edit-user') }} <small>{{ $user->present()->fullname() }}</small>
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class=""><a href="{{ URL::route('admin.user.user.index') }}">{{ trans('user::users.breadcrumb.users') }}</a></li> <li class=""><a href="{{ route('admin.user.user.index') }}">{{ trans('user::users.breadcrumb.users') }}</a></li>
<li class="active">{{ trans('user::users.breadcrumb.edit-user') }}</li> <li class="active">{{ trans('user::users.breadcrumb.edit-user') }}</li>
</ol> </ol>
@stop @stop
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('user::users.title.users') }} {{ trans('user::users.title.users') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('user::users.breadcrumb.users') }}</li> <li class="active">{{ trans('user::users.breadcrumb.users') }}</li>
</ol> </ol>
@stop @stop
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="row"> <div class="row">
<div class="btn-group pull-right" style="margin: 0 15px 15px 0;"> <div class="btn-group pull-right" style="margin: 0 15px 15px 0;">
<a href="{{ URL::route('admin.user.user.create') }}" class="btn btn-primary btn-flat" style="padding: 4px 10px;"> <a href="{{ route('admin.user.user.create') }}" class="btn btn-primary btn-flat" style="padding: 4px 10px;">
<i class="fa fa-pencil"></i> {{ trans('user::users.button.new-user') }} <i class="fa fa-pencil"></i> {{ trans('user::users.button.new-user') }}
</a> </a>
</div> </div>
...@@ -41,27 +41,27 @@ ...@@ -41,27 +41,27 @@
<?php foreach ($users as $user): ?> <?php foreach ($users as $user): ?>
<tr> <tr>
<td> <td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}"> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">
{{ $user->id }} {{ $user->id }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}"> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">
{{ $user->first_name }} {{ $user->first_name }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}"> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">
{{ $user->last_name }} {{ $user->last_name }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}"> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">
{{ $user->email }} {{ $user->email }}
</a> </a>
</td> </td>
<td> <td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}"> <a href="{{ route('admin.user.user.edit', [$user->id]) }}">
{{ $user->created_at }} {{ $user->created_at }}
</a> </a>
</td> </td>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{{ trans('workshop::workbench.title') }} {{ trans('workshop::workbench.title') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('user::users.breadcrumb.home') }}</a></li> <li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('user::users.breadcrumb.home') }}</a></li>
<li class="active">{{ trans('workshop::workbench.title') }}</li> <li class="active">{{ trans('workshop::workbench.title') }}</li>
</ol> </ol>
@stop @stop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment