@extends('layouts.app') @section('content')

{{$category->title}}

@isset($category->children)
@foreach ($category->children as $catChild) @endforeach
@endisset

Showing {{count($category->products)}} products

@foreach($category->products as $product) @if($product->total_qty>0)
{{$product->title}} @if($product->disc_amount >=1)
{!!$product->disc_type ? $product->disc_amount.'% OFF' : '৳'.$product->disc_amount.' OFF'!!}
@endif
@if($product->discount_amount > 0) @if($product->discount_type != 0) @endif {{ intval($product->discount_amount) }}% @if($product->discount_type == 0) ৳ @endif Discount @endif ৳ {{$product->sale_price}} @if($product->discount_amount > 0)৳{{$product->regular_price}}@endif
{{--
@if($product->hassize) View Details @else @if($product->total_qty>0)
@csrf
@else @endif @endif
--}}
@endif @endforeach
@endsection