<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class FormMeetingSeminar extends Model
{
    use SoftDeletes;

    protected $table = 'form_meeting_seminar';
    protected $fillable = [
        'expense_number',
        'user_id',
        'allowance',
        'transport_ankot',
        'hotel',
        'total',
        'approved_allowance',
        'approved_transport_ankot',
        'approved_hotel',
        'approved_total',
        'bukti_allowance',
        'bukti_transport_ankot',
        'bukti_hotel',
        'account_number',
        'status',
        'approved_at',
        'approved2_at',
        'approved_by',
        'approved2_by',
        'final_approved_at',
        'final_approved_by',
    ];

    public function user()
    {
        return $this->belongsTo(Admin::class, 'user_id');
    }
}
