@extends('superadmin.layout')
@section('content')
    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            <div class="page-header">
                <h3>Add Role</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ asset('superadmin/dashboard') }}">Dashboard</a></li>
                        <li class="breadcrumb-item"><a href="{{ asset('superadmin/roles') }}">Roles</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Add Role</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="row">
                <div class="col-md-6">
                    <x-flashMessage />
                    <div class="card">
                        <div class="card-header">
                            <a href="{{ asset('superadmin/roles') }}" class="btn btn-primary pull-right text-white">
                                <i class="fa fa-list"></i>&nbsp;Role List</a>
                        </div>
                        <div class="card-body">
                            <form action="{{ asset('superadmin/add-role') }}" method="post">
                                @csrf
                                <div class="form-group">
                                    <label for="rollName">Name</label>
                                    <input type="text" class="form-control" name="rolename" value="{{ old('rolename') }}"
                                        id="rolename" placeholder="Type role name">

                                    @if ($errors->has('rolename'))
                                        <div class="error">
                                            {{ $errors->first('rolename') }}
                                        </div>
                                    @endif

                                </div>

                                <button type="submit" class="btn btn-primary">Submit</button>
                            </form>
                        </div>
                    </div>



                </div>

            </div>

        </div>

    </main>
    <!-- end::main content -->
@endsection
@push('footer-script')
@endpush
