@extends('admin-system.admin')
@section('content')
<div class="container-fluid  px-0">
    <div class="row">
        <div class="col-sm-12">
            <div class="card border-0 bg-transparent">
                <div class="card-header border-0 bg-transparent px-0 py-0 mb_20  ">
                    <div class="d-flex justify-content-between">
                        <a class="page-title text-nowrap">
                            <h4 class="text-koulen">Role</h4>
                        </a>
                    </div>
                </div>
                <div class="card-body border-0 bg-white rounded_8">
                    <div class="mb-3">
                        <label class="form-label">Role<sup class="text-danger">*</sup></label>
                        <select name="role_id" class="form-control @error('role_id') is-invalid @enderror">
                            <option value="">Select Role</option>
                            @foreach ($roles as $val )
                                <option value="{{ $val->id }}">{{ $val->name }}</option>
                            @endforeach
                        </select>
                    </div>
                    <br>
                    <div class="border position-relative rounded mx-2">
                        <div class="position-absolute  rounded px-1 bg-white" style="top: -20px; left: 25px; border: #aaa solid 1px ;">
                            <div>
                                 <label class="text-nowrap" style=" line-height: 15px">
                                    <input type="checkbox" />
                                    <label class="ms-2">Select all permission</label>
                                </label>
                            </div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <div class="position-relative rounded d-flex flex-wrap px-3">
                            <div class=" rounded position-relative rounded mb-5 col-sm-3"
                                <div class=" h-100 pt-3 pb-2 rounded px-2" style="border: #ececec solid 1px; box-shadow: 0px 2px 12px #ececec;">
                                    <div class="position-absolute rounded px-1 bg-white" style="top: -20px; left: 20px; border: #DEDBDB solid 1px;box-shadow: rgb(244 244 244) 0px 2px 6px;">
                                        <label class="text-nowrap" style=" line-height: 15px" >
                                            <input type="checkbox"  <label class="ms-2"></label>
                                        </label>
                                    </div>
                                    <div >
                                        <label style=" line-height: 15px">
                                            <input type="checkbox" >
                                            <label class="ms-2"></label>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="d-flex justify-content-end py-3 px-2">
                        <button type="button" class="btn btn-dark  me-2">
                            <i class="fa-solid fa-arrow-left"></i> Close
                        </button>
                        <button type="submit" class="btn btn-success " >
                            <i class="fa-solid fa-floppy-disk"></i>
                            Submit
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
