<!-- Name Field -->
<div class="form-group">
    <div class="row">
        {!! Form::label('name', 'Name:',['class'=>'col-md-3 col-lg-3 col-12 control-label']) !!}
        <div class="col-md-9 col-lg-9 col-12">
            {!! Form::text('name', null, ['class' => 'form-control']) !!}
        </div>
    </div>
</div>


<!-- Description Field -->
<div class="form-group">
    <div class="row">
        {!! Form::label('description', 'Description:',['class'=>'col-md-3 col-lg-3 col-12 control-label']) !!}
        <div class="col-md-9 col-lg-9 col-12">
            {!! Form::text('description', null, ['class' => 'form-control']) !!}
        </div>
    </div>
</div>

<div class="card">
    <div class="card-header bg-info text-white">
        <h5 class="text-white">Permissions</h5>
    </div>
    <div class="card-body mt-3">
        <div class="row">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header bg-info text-white">
                        <h5 class="text-white">Global Snapshot</h5>
                    </div>
                    <div class="card-body mt-3">
                        {!! Form::select('global_levels[]', $global_levels, (isset($selected_g_l)) ? $selected_g_l : null, ['class' => "form-control chzn-select", 'multiple']) !!}
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header bg-info text-white">
                        <h5 class="text-white">Workload</h5>
                    </div>
                    <div class="card-body mt-3">
                        {!! Form::select('workload_levels[]', $workload_levels, (isset($selected_w_l)) ? $selected_w_l : null, ['class' => "form-control chzn-select", 'multiple']) !!}
                    </div>
                </div>
            </div>
        </div>
        <div class="row" style="margin-top: 10px;">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header bg-info text-white">
                        <h5 class="text-white">Invoice</h5>
                    </div>
                    <div class="card-body mt-3">
                        {!! Form::select('invoice_levels[]', $invoice_levels, (isset($selected_i_l)) ? $selected_i_l : null, ['class' => "form-control chzn-select", 'multiple']) !!}
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header bg-info text-white">
                        <h5 class="text-white">Exception</h5>
                    </div>
                    <div class="card-body mt-3">
                        {!! Form::select('exception_levels[]', $exception_levels, (isset($selected_e_l)) ? $selected_e_l : null, ['class' => "form-control chzn-select", 'multiple']) !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Submit Field -->
<div class="form-group col-sm-12"  style="margin-top: 10px;">
    {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
    <a href="{{ route('roles.index') }}" class="btn btn-default">Cancel</a>
</div>
