@extends("layout.app") @section("styles") @include('partial.infinite_pagination.style') @endsection @section("content")
@if($filter == "devices"||request('filter')=='devices')

تنزيلات وخصومات الاجهزة


{{ Form::select('order_by', [ 'default' => 'اختر طريقة الترتيب', 'date_oldest' => 'من الاقدم للاحدث', 'date_newest' => 'من الاحدث للاقدم', 'price_low_to_high' => 'من الاقل سعرا الى الاعلى', 'price_high_to_low' => 'من الاعلى سعرا للاقل' ], request()->get('order_by'),['id'=>'orderBy'])}}

@forelse($items as $loopIndex => $item) @php $selectedColor = $item->selectedColor ?? null; $itemColorsSorted = $item->itemColorsSorted ?? collect(); $topLeftBadge = $item->badges_by_position['top-left'] ?? null; $topRightBadge = $item->badges_by_position['top-right'] ?? null; $bottomBadge = $item->badges_by_position['bottom'] ?? null; $productUrl = url($item->category->main_category->slug . '/' . $item->category->slug . '/' . $item->id); @endphp @if($selectedColor)
@if($item->is_sale && (!$item->discount_to || $item->discount_to < today())) @endif @if($topLeftBadge) @endif @if($topRightBadge) @endif @if($bottomBadge)
background_color) style="background:{{$bottomBadge->background_color}}" @endif> font_color) style="color:{{$bottomBadge->font_color}}" @endif>{{$bottomBadge->title}}
@endif

{{ $item->show_title }}

@if($itemColorsSorted->isNotEmpty())

{{ $selectedColor->code ?? '-' }}

@foreach($itemColorsSorted 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($selectedColor->id == $color->id) checked @endif>
@endforeach
@endif
@if($item->can_laser)
إمكانية الحفر بالليزر
@endif
@if($item->discountState || $item->discountPercentage)
{{ number_format($item->price) }} شيكل

{{ number_format($item->totalPrice) }} شيكل

@else

{{ number_format($item->price) }} شيكل

@endif
{{ $selectedColor->quantity ? 'متوفر' : ($selectedColor->stock_status == 'coming-soon' && !$selectedColor->preorder_quantity ? 'قريباً' : ($item->is_special_order ? 'طلب خاص' : ($selectedColor->preorder_quantity > 0 ? 'طلب مسبق' : 'غير متوفر'))) }}
@endif @empty
لا يوجد عناصر حاليا ...
@endforelse
@else

تنزيلات وخصومات الاكسسوارات


@include('accessories.partial.accessories_filters_and_items')
@endif @endsection @section("scripts") @include('partial.infinite_pagination.script') @include('accessories.partial.accessories_script', ['baseRoute' => route('sales')]) @endsection