@extends('Dashboard::layouts.dashboard')
@section('content')
<div class="d-sm-flex align-items-center justify-content-between mb-4">
	{!! Breadcrumbs::render(request()->route()->getName(), $element) !!}
	<div>
		<a href="{{ route('admin.user') }}" class="d-none d-sm-inline-block btn btn-sm btn-warning shadow-sm">
			<i class="fas fa-step-backward fa-sm text-white-50"></i>
			Volver Atras
		</a>
	</div>
</div>
<x-dashboard-messages/>
<div class="row">
	<form class="col s12" method="POST" action="{{ route('admin.user.permission.update', $element->id) }}" enctype="multipart/form-data">
		@csrf
		<div class="row">
			<div class="col-xl-12 col-lg-12">
				<div class="card shadow mb-4">
					<!-- Card Header - Dropdown -->
					<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
						<h6 class="m-0 font-weight-bold text-primary">Cambiar permisos a Usuario</h6>
					</div>
					<!-- Card Body -->
					@include('Dashboard::admin.users.form-permissions')
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xl-12 col-lg-12 d-sm-flex align-items-center justify-content-between">
				<a href="{{ route('admin.user') }}" class="d-none d-sm-inline-block btn btn-sm btn-warning shadow-sm">
					<i class="fas fa-step-backward fa-sm text-white-50"></i>
					Volver Atras
				</a>

				<button class="d-none d-sm-inline-block btn btn-lg btn-primary shadow-sm">
					<i class="fas fa-save fa-sm text-white-50"></i>
					Guardar
				</button>
			</div>
		</div>
	</form>
</div>
@endsection
