-change the heading in pdf from credit note to refund note for those transaction after 02 April 2024

This commit is contained in:
Jia Sheng
2024-07-04 22:07:24 +08:00
parent 416ec42ebc
commit 77140ec751
@@ -24,8 +24,11 @@
</td>
<td class="header-details">
<div class="title">
@php
$credit_title = \Carbon\Carbon::parse($transaction->created_at)->isAfter('2024-04-02') ? 'Refund' : 'Credit'
@endphp
<strong>
{{ $transaction->type == 9 ? 'Credit' : 'Debit' }} Note
{{ $transaction->type == 9 ? $credit_title : 'Debit' }} Note
</strong>
</div>