@if (isset($route))
@set(list($route, $params) = $route)
@set($param = [])
@if(is_array($params))
@set($routeParams = explode('.', $route))
@for($i = 0, $limit = count($routeParams); $i < $limit; ++$i)
@if(isset($params[$i]))
@set($param[$route[$i]] = $params[$i])
@endif
@endfor
@else
@set($param = [$route => $params])
@endif
@set($route = 'admin.'.$route)
{{-- a => add --}}
@if (Route::has($route.'.create') && false !== strpos($action, 'a'))
{{ trans('button.add') }}
@endif
@if (Route::has($route.'.edit') && false !== strpos($action, 'e'))
{{ trans('button.edit') }}
@endif
@if(false !== strpos($action, 'c'))
{{ trans('button.cancel') }}
@endif
@endif
{{-- b => back --}}
@if (false !== strpos($action, 'b'))
{{ trans('button.back') }}
@endif