-
app/Models/Payment.php
Open in GitHubuse Illuminate\Database\Eloquent\Model; class Payment extends Model { // public function getFormattedPaymentDateAttribute($value) { $dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id); return Carbon::parse($this->payment_date)->format($dateFormat); } // }
-
resources/views/app/pdf/payment/payment.blade.php
Open in GitHub// ... <tr> <td class="attribute-label">@lang('pdf_payment_date')</td> <td class="attribute-value"> {{$payment->formattedPaymentDate}}</td> </tr> // ...