{{-- If This product belongs to vendor then apply this --}} @if($prod->user_id != 0) {{-- check If This vendor status is active --}} @if($prod->user->is_vendor == 2) @if(!empty($prod->features)) @foreach($prod->features as $key => $data1) {{ $prod->features[$key] }} @endforeach @endif @if(Auth::guard('web')->check()) @else @endif {{ $prod->showPrice() }} {{ $prod->showPreviousPrice() }} {{ $prod->showName() }} @if($prod->product_type == "affiliate") {{ $langg->lang251 }} @else @if($prod->emptyStock()) {{ $langg->lang78 }} @else {{ $langg->lang56 }} {{ $langg->lang251 }} @endif @endif @endif {{-- If This product belongs admin and apply this --}} @else @if(!empty($prod->features)) @foreach($prod->features as $key => $data1) {{ $prod->features[$key] }} @endforeach @endif @if(Auth::guard('web')->check()) @else @endif {{ $prod->showPrice() }} {{ $prod->showPreviousPrice() }} {{ $prod->showName() }} @if($prod->product_type == "affiliate") {{ $langg->lang251 }} @else @if($prod->stock === 0) {{ $langg->lang78 }} @else {{ $langg->lang56 }} {{ $langg->lang251 }} @endif @endif @endif