-
-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08caac2
commit 992321c
Showing
4 changed files
with
108 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 40 additions & 25 deletions
65
packages/Webkul/Admin/src/Resources/views/settings/roles/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,46 @@ | ||
@extends('admin::layouts.master') | ||
<x-admin::layouts> | ||
<x-slot:title> | ||
@lang('admin::app.settings.roles.index.title') | ||
</x-slot> | ||
|
||
@section('page_title') | ||
{{ __('admin::app.settings.roles.title') }} | ||
@stop | ||
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300"> | ||
<div class="flex flex-col"> | ||
<div class="flex cursor-pointer items-center"> | ||
<i class="icon-left-arrow text-2xl text-gray-800"></i> | ||
|
||
@section('content-wrapper') | ||
<div class="content full-page"> | ||
<table-component data-src="{{ route('admin.settings.roles.index') }}"> | ||
<template v-slot:table-header> | ||
<h1> | ||
{!! view_render_event('admin.settings.roles.index.header.before') !!} | ||
<a | ||
href="{{ route('admin.settings.roles.index') }}" | ||
class="text-xs text-gray-800 dark:text-gray-300" | ||
> | ||
@lang('admin::app.settings.roles.index.settings') | ||
</a> | ||
</div> | ||
|
||
{{ Breadcrumbs::render('settings.roles') }} | ||
<div class="pl-3 text-xl font-normal dark:text-gray-300"> | ||
@lang('admin::app.settings.roles.index.title') | ||
</div> | ||
</div> | ||
|
||
{{ __('admin::app.settings.roles.title') }} | ||
<div class="flex items-center gap-x-2.5"> | ||
<!-- Create button Roles --> | ||
<div class="flex items-center gap-x-2.5"> | ||
{!! view_render_event('krayin.admin.settings.roles.index.create_button.before') !!} | ||
@if (bouncer()->hasPermission('settings.user.roles.create')) | ||
<a | ||
href="{{ route('admin.settings.roles.create') }}" | ||
class="primary-button" | ||
> | ||
@lang('admin::app.products.index.create-btn') | ||
</a> | ||
@endif | ||
{!! view_render_event('krayin.admin.settings.roles.index.create_button.after') !!} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{!! view_render_event('admin.settings.roles.index.header.after') !!} | ||
</h1> | ||
</template> | ||
{!! view_render_event('krayin.admin.settings.roles.index.datagrid.before') !!} | ||
|
||
@if (bouncer()->hasPermission('settings.user.roles.create')) | ||
<template v-slot:table-action> | ||
<a href="{{ route('admin.settings.roles.create') }}" class="btn btn-md btn-primary"> | ||
{{ __('admin::app.settings.roles.create-title') }} | ||
</a> | ||
</template> | ||
@endif | ||
<table-component> | ||
</div> | ||
@stop | ||
<x-admin::datagrid src="{{ route('admin.settings.roles.index') }}" /> | ||
|
||
{!! view_render_event('krayin.admin.settings.roles.index.datagrid.after') !!} | ||
</x-admin::layouts> |