@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