<div class="col-12">
<div  class="row pricing-list-item border-item  mb-4" style="background-color: white;height:auto">
    <div class="col-lg-12">
        <h3> {{__('categories.attribute')}} </h3>
    </div>
    <div class="col-lg-5">
        <label>{{ __('categories.status_attr') }} </label>
        <select class="form-control" id="attributes_{{$key}}_status" name="attributes[{{$key}}][status]">
            @foreach($statuses as $row)
                <option {{ (isset($attribute) ? $attribute->status : null) == $row ? 'selected' : '' }} value="{{$row}}">{{__('categories.statuses.'.$row)}}</option>
            @endforeach
        </select>
    </div>
    <div class="col-lg-5">
        <label>{{ __('categories.is_required') }} </label>
        <select class="form-control" id="attributes_{{$key}}_is_required" name="attributes[{{$key}}][is_required]">
            @foreach($is_requireds as $row)
                <option {{ (isset($attribute) ? $attribute->is_required : null) == $row ? 'selected' : '' }} value="{{$row}}">{{__('categories.is_requireds.'.$row)}}</option>
            @endforeach
        </select>
    </div>
    <div class="form-group col-lg-2" style="font-size: 30px;margin-top:35px;">
        <i class="fas fa-times-circle" onclick="remove(this)"></i>
    </div>
    

    @foreach($languages as $language)

        <div class="form-group col-lg-6">
            <label>{{ __('categories.title') }} {{ count($languages) > 1 ? "({$language->name})" : '' }} </label>
            <input type="text" class="form-control" name="attributes[{{$key}}][title_{{ $language->local }}]" placeholder="{{ __('categories.title') }}" @if(isset($attribute)) value='{{ $attribute->descriptions($language->id)->title}}' @endif />
        </div>
    @endforeach
</div>
