@extends('layout.frontend.master') @section('meta-title', 'Products - LEREVE') @push('asset-top') @endpush @section('content')
inner banner
@foreach($products as $product) @php $percent = ''; $weights = json_decode($product->measurements, true); @endphp @if($product->single_sale_price) @php $percent = (($product->single_price-$product->single_sale_price)/$product->single_price) * 100; $percent = ceil($percent); @endphp @endif
@if($product->new)
{{__('New')}}
@endif @if(!empty($percent))
{{$percent}}% {{__('OFF')}}
@endif @php $quantity = json_decode($product->quantity, true); $quantity = $product->single_quantity; @endphp @if(is_null($quantity) || array_key_exists('Select', $quantity))
{{__('Out Of Stock')}}
@endif product

{{ (app()->getlocale()=='en') ? $product->name_en : $product->name_ar }}

@if($product->single_sale_price)
{{$product->single_sale_price}} {{__('KWD')}} {{$product->single_price}} {{__('KWD')}}
@else
{{$product->single_price}} {{__('KWD')}}
@endif @if($product->preparation_time)
{{__('Preparation Time')}} : {{$product->preparation_time.' '.$product->units}}
@endif
@endforeach
@if($products->count()>10)
{{$products->appends(Request::except('page'))->links()}}
@endif

{{__('Keep Browsing')}}

@endsection @push('asset-bottom') @endpush