@foreach (\App\Models\Tax::where('tax_status', 1)->get() as $tax)
@php
$tax_amount = 0;
$tax_type = '';
foreach ($tax->product_taxes as $row) {
if ($product->id == $row->product_id) {
$tax_amount = $row->tax;
$tax_type = $row->tax_type;
}
}
@endphp
@endforeach
@php
$date_range = '';
if($product->discount_start_date){
$start_date = date('d-m-Y H:i:s', $product->discount_start_date);
$end_date = date('d-m-Y H:i:s', $product->discount_end_date);
$date_range = $start_date.' to '.$end_date;
}
@endphp
{{-- Frequently Bought Products --}}