2024-12-11 12:29:55 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
|
|
|
|
class FormUpCountry extends Model
|
|
|
|
|
{
|
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
|
|
|
|
protected $table = 'form_up_country';
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'expense_number',
|
|
|
|
|
'user_id',
|
|
|
|
|
'rayon_id',
|
|
|
|
|
'tanggal',
|
|
|
|
|
'tujuan',
|
|
|
|
|
'jarak',
|
|
|
|
|
'allowance',
|
|
|
|
|
'transport_dalkot',
|
|
|
|
|
'transport_ankot',
|
|
|
|
|
'hotel',
|
|
|
|
|
'total',
|
2025-01-02 17:59:33 +07:00
|
|
|
'approved_allowance',
|
|
|
|
|
'approved_transport_dalkot',
|
|
|
|
|
'approved_transport_ankot',
|
|
|
|
|
'approved_hotel',
|
|
|
|
|
'approved_total',
|
2025-01-03 21:37:58 +07:00
|
|
|
'bukti_allowance',
|
|
|
|
|
'bukti_transport_dalkot',
|
|
|
|
|
'bukti_transport_ankot',
|
|
|
|
|
'bukti_hotel',
|
2025-06-18 19:15:53 +07:00
|
|
|
'uc_plan',
|
2024-12-11 12:29:55 +07:00
|
|
|
'account_number',
|
|
|
|
|
'status',
|
2024-12-23 10:10:09 +07:00
|
|
|
'approved_at',
|
2025-01-16 15:56:22 +07:00
|
|
|
'approved2_at',
|
2024-12-23 10:10:09 +07:00
|
|
|
'approved_by',
|
2025-01-16 15:56:22 +07:00
|
|
|
'approved2_by',
|
2024-12-23 10:10:09 +07:00
|
|
|
'final_approved_at',
|
|
|
|
|
'final_approved_by',
|
2024-12-11 12:29:55 +07:00
|
|
|
];
|
2024-12-16 17:01:55 +07:00
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('App\Models\Admin');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function rayon()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('App\Models\Rayon');
|
|
|
|
|
}
|
2024-12-11 12:29:55 +07:00
|
|
|
}
|