@extends('admin.layouts.master') @section('content')

{{ trans('app.roles') }}

@can('create', \App\Models\Role::class) {{ trans('app.add_role') }} @endcan
@can('massDelete', \App\Models\Role::class) @endcan @foreach ($roles as $role) @can('massDelete', \App\Models\Role::class) @endcan @endforeach
{{ trans('app.name') }} {{ trans('app.users') }} {{ trans('app.type') }} {{ trans('app.role_level') }} {{ trans('app.option') }}
{{ $role->name }}
@if ($role->description) {!! $role->description !!} @endif
{{ $role->users_count }} {{ $role->public ? trans('app.merchant') : trans('app.platform') }} {{ $role->level }} @can('view', $role)   @endcan @can('update', $role)   @endcan @can('delete', $role) {!! Form::open(['route' => ['admin.setting.role.trash', $role->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan

@can('massDelete', \App\Models\Role::class) {!! Form::open(['route' => ['admin.setting.role.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.name') }} {{ trans('app.type') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }}
@if ($trash->description)

{!! $trash->description !!}

@endif
{{ $trash->public ? trans('app.merchant') : trans('app.platform') }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.setting.role.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection