@extends('frontend.layouts.master') @section('title','JAYAKA || PRODUCT PAGE') @section('main-content')
@csrf

Categories

    @php // $category = new Category(); $menu=App\Models\Category::getAllParentWithChild(); @endphp @if($menu)
  • @foreach($menu as $cat_info) @if($cat_info->child_cat->count()>0)
  • {{$cat_info->title}}
  • @else
  • {{$cat_info->title}}
  • @endif @endforeach @endif {{-- @foreach(Helper::productCategoryList('products') as $cat) @if($cat->is_parent==1)
  • {{$cat->title}}
  • @endif @endforeach --}}

Shop by Price

{{--
Range:
--}} @php $max=DB::table('products')->max('price'); // dd($max); @endphp
Range:
{{--
--}}

Recent post

@foreach($recent_products as $product) @php $photo=explode(',',$product->photo); @endphp
{{$photo[0]}}
{{$product->title}}
@php $org=($product->price-($product->price*$product->discount)/100); @endphp

Rs{{number_format($product->price,2)}} Rs{{number_format($org,2)}}

@endforeach

Brands

    @php $brands=DB::table('brands')->orderBy('title','ASC')->where('status','active')->get(); @endphp @foreach($brands as $brand)
  • {{$brand->title}}
  • @endforeach
@php $curr = request()->query('view', 'grid'); // fallback to grid if no query $gridUrl = request()->fullUrlWithQuery(['view' => 'grid']); $listUrl = request()->fullUrlWithQuery(['view' => 'list']); @endphp
@if(count($products)) @foreach($products as $product) {{-- {{$product}} --}}
@php $after_discount=($product->price-($product->price*$product->discount)/100); @endphp Rs{{number_format($after_discount,2)}} Rs{{number_format($product->price,2)}}

{{$product->title}}

{{--

{!! html_entity_decode($product->summary) !!}

--}}

{!! html_entity_decode($product->summary) !!}

Buy Now!
@endforeach @else

There are no products.

@endif
{{-- {{$products->appends($_GET)->links()}} --}}

Recent post

@foreach($recent_products as $product) @php $photo=explode(',',$product->photo); @endphp
{{$photo[0]}}
{{$product->title}}
@php $org=($product->price-($product->price*$product->discount)/100); @endphp

Rs{{number_format($product->price,2)}} Rs{{number_format($org,2)}}

@endforeach
@if($products) @foreach($products as $key=>$product) @endforeach @endif @endsection @push ('styles') @endpush @push('scripts') {{-- --}} @endpush