���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/app__1b5d5ff/Models/Budget.php
���ѧ٧ѧ�
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Budget extends Model { protected $fillable = [ 'name','start_date','end_date','period','created_by' ]; public static $period = [ 'monthly' => 'Monthly', 'quarterly' => 'Quarterly', 'half-yearly' =>'Half Yearly', 'yearly' => 'Yearly', ]; public function getAvailabilityDate() { $start_date = ''; $end_date = ''; $date = ''; $date_formate =('M-Y'); if(!empty($this->start_date)) { $start_date = date ($date_formate , strtotime($this->start_date) ); $date = $start_date; } if(!empty($this->end_date)) { $end_date = date ($date_formate , strtotime($this->end_date) ); $date .= ' - ' .$end_date.' '; } return $date; } public static function percentage($actual,$budget) { $percentage = $budget*100/$actual; return number_format($percentage,2); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.37 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�