<div class="row">
    <div class="col-md-12 rounded">
        <div class="row g-2 mb-2">
            <div class="col-md-6">
                <label class="form-label" for="parent_menu">{{trans('admin.parent_menu')}}</label>
                <select name="parent_id" id="" class="form-control form-control-sm">

                    <option value="">{{trans('admin.select')}}</option>
                    @foreach ($parent_menu as $item)
                        @php
                            $selected = ($item->id == $data->parent_id) ? 'selected' : '';
                        @endphp
                        <option value="{{$item->id}}" {{$selected}}>{{$item->menu_name}}</option>
                    @endforeach
                </select>
            </div>
            <div class="col-md-6">
                <label class="form-label" for="name">{{trans('admin.name')}}<span class="text-danger">*</span></label>
                <input id="name" name="name" type="text" class="form-control form-control-sm" value="{{$data->menu_name}}" autocomplete="off">
            </div>

            <div class="col-md-6">
                <label class="form-label" for="name_ar">{{trans('admin.name_ar')}}<span class="text-danger">*</span></label>
                <input id="name_ar" name="name_ar" type="text" class="form-control form-control-sm" value="{{$data->menu_ar}}" autocomplete="off">
            </div>

            <div class="col-md-6">
                <label class="form-label" for="name_ar">{{trans('admin.route')}}<span class="text-danger">*</span></label>
                <input id="route" name="route" type="text" class="form-control form-control-sm" value="{{$data->route}}" autocomplete="off">
            </div>
            <div class="col-md-6">
                <label class="form-label" for="icon">{{trans('admin.icon')}}<span class="text-danger">*</span></label>
                <input id="icon" name="icon" type="text" class="form-control form-control-sm" placeholder="{{trans('admin.icon')}}"  value="{{$data->icon}}" autocomplete="off">
            </div>
            <div class="col-md-6">
                <label class="form-label" for="name_ar">{{trans('admin.order_by')}}<span class="text-danger">*</span></label>
                <input id="order_by" name="order_by" type="text" class="form-control form-control-sm" placeholder="{{trans('admin.order_by')}}"  value="{{$data->order_by}}" autocomplete="off">
            </div>
            <div class="col-col-md-6">
                <label class="form-label" for="type">{{trans('admin.type')}}<span class="text-danger">*</span></label>
                <select name="type" id="" class="form-control form-control-sm">
                    @foreach ($types as $key => $val)
                        @php $selected = ($key == $data->type) ? "selected" : ''; @endphp
                        <option value="{{$key}}" {{$selected}}>{{$val}}</option>
                    @endforeach
                </select>
            </div>
            <input type="hidden" name="id" value="{{$data->id}}">
        </div>
    </div>
</div>
