<div class="col-xs-6"> <?php echo Form::open(['route' => ['admin.page.update', $page['id']], 'method' => 'PATCH', 'secure' => true]); ?> <i class="glyphicon glyphicon-resize-vertical"></i> <?php echo $page['title']; ?> <?php echo Form::hidden('order', $page['order']); ?> <?php echo Form::close(); ?> </div> <div class="col-xs-6 text-right"> <?php if(is_null($page['parent']) && ($page['type'] != 'books') && ($page['type'] != 'terms') && ($page['type'] != 'privacy')): ?> <?php if(Sentry::getUser()->hasAccess('admin.page.create')): ?> <?php echo Button::success(trans('admin.buttons.add-page'))->asLinkTo(route('admin.page.create', ['parent' => $page['id']]))->extraSmall()->prependIcon(Icon::plus_sign()); ?> <?php endif; ?> <?php endif; ?> <?php if(Sentry::getUser()->hasAccess('admin.page.edit')): ?> <?php echo Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.page.edit', [$page['id']]))->extraSmall()->prependIcon(Icon::pencil())->withAttributes(['class' => 'edit']); ?> <?php else: ?> <?php echo Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.page.show', [$page['id']]))->extraSmall()->prependIcon(Icon::search()); ?> <?php endif; ?> <?php if(($page['type'] != 'books') && ($page['type'] != 'terms') && ($page['type'] != 'privacy')): ?> <?php if(Sentry::getUser()->hasAccess('admin.page.destroy')): ?> <?php echo Button::normal(trans('admin.buttons.delete'))->extraSmall()->prependIcon(Icon::trash())->withAttributes(['data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-route' => route('admin.page.destroy', [$page['id']]), 'data-item' => $page['title']]); ?> <?php endif; ?> <?php endif; ?> </div>