Selam dostlar.
Duruma göre bir koşul oluşturmaya çalışıyorum. Kod şu şekilde:
@if($accounting->paid === 0 AND $accounting->type === 3 OR $accounting->type === 4)
{{ Carbon\Carbon::parse($accounting->redate)->diffforhumans() }}
@elseif($accounting->paid === 0 AND $accounting->type === 1 OR $accounting->type === 2)
eklendi
@else
ödendi
@endif
yani ödenmemişse ve tipi borç veya alacak ise {{ Carbon\Carbon::parse($accounting->redate)->diffforhumans() }} gözüksün, ödenmemişse ve tipi gelir veya gider ise "eklendi" yazsın, ödenmişse ve tipi borç veya alacak ise ödendi yazsın.
ama buradaki $accounting->paid === 0 görmezden geliyor. Bu koşuldan sonraki $accounting->type === 3 OR $accounting->type === 4 ise $accounting->paid === 0 olsa bile {{ Carbon\Carbon::parse($accounting->redate)->diffforhumans() }} gösteriyor..