[WIP] Claims

This commit is contained in:
R
2022-12-07 12:00:58 +07:00
parent 670ffa8702
commit aac9fcf58b
17 changed files with 238 additions and 203 deletions

View File

@@ -18,6 +18,17 @@ class Claim extends Model
'currency',
'plan_id',
'benefit_id',
'status',
'requested_at',
'requested_by',
'received_at',
'received_by',
'approved_at',
'approved_by',
'declined',
'declined_by',
'paid_at',
'paid_by',
];
protected $hidden = [
@@ -75,7 +86,7 @@ class Claim extends Model
{
return $query
->whereIn('status', ['approved', 'paid'])
->whereBetween('requested_at', $startDate, $endDate);
->whereBetween('requested_at', [$startDate, $endDate]);
}
}