@if ($item)
@php $total_payment = $item->salaryPaymentByMonth($month)->sum('payment'); $amount = $item->net_salary - $total_payment; @endphp
@if ($amount>0)

@endif
@else

Data No found in this condition

@endif