Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

bytefury/crater

8213 stars
2 code files
View bytefury/crater on GitHub

app/Models/Payment.php

Open in GitHub
use 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"> &nbsp;{{$payment->formattedPaymentDate}}</td>
</tr>
 
// ...

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.