badges()->where("position","bottom")->where("is_active",1)->first()) style="position: relative;" @endif> @if($item->is_sale==true) @endif @if($item->badges()->where("position","top-left")->where("is_active",1)->first()) latest()->first()->image}}" class="top_left_tag"> @endif @if($item->badges()->where("position","top-right")->where("is_active",1)->first()) latest()->first()->image}}" class="top_right_tag"> @endif
@php $item_colors_sorted = $item->colors->where("is_hidden",0)->sortBy(function($q) {return $q->color->order;});@endphp @php $selected_color = null;@endphp @foreach($item_colors_sorted as $color) @if(IHouse::isSelectedColor($color->code, $item_colors_sorted)) @php $selected_color = $color; @endphp @break @endif @endforeach @if(!$selected_color) @php $selected_color = $item_colors_sorted->first(); @endphp @endif @if($item_colors_sorted->count()>0) @foreach($item->item_colors as $color) @endforeach @if($item->badges()->where("position","bottom")->where("is_active",1)->first())
badges()->where("position","bottom")->latest()->first()->background_color) style="background:{{$item->badges()->where("position","bottom")->latest()->first()->background_color}}" @endif> badges()->where("position","bottom")->latest()->first()->font_color) style="color:{{$item->badges()->where("position","bottom")->latest()->first()->font_color}}" @endif>{{$item->badges()->where("position","bottom")->first()->title}}
@endif @endif

{{ $item->show_title }}

@php $item_colors_sorted = $item->colors->where("is_hidden",0)->sortBy(function($q) {return $q->color->order;});@endphp @if(count($item_colors_sorted) > 0)
@if(count($item_colors_sorted) != 1) اختر اللون لفحص التوفر @endif
@foreach($item_colors_sorted as $color)
quantity==0?'title="غير متوفر"':""!!} style="display: block; margin: 0 auto; background:{{$color->quantity==0 ? "repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 3px, rgba(0, 0, 0, 0.3) 3px, rgba(0, 0, 0, 0.3) 7px ),{$color->color->color}": $color->color->color}}" class="color-chooser {!!$color->quantity==0?"disabled":""!!}" type="radio" id="{{$color->color->id}}" name="color-{{$item->id}}" value="{{$color->color->id}}" @if($selected_color->id == $color->id ) checked @endif>
@endforeach
@endif @php $specifications = ''; @endphp @foreach($spec_categories as $spec_category) @if($spec_category->is_upgradable)