mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 23:13:59 +00:00
Merge branch 'master' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development
This commit is contained in:
@@ -17,7 +17,7 @@ class TransactionResource extends JsonResource
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = (int)$this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
|
||||
$days = Carbon::parse($this->created_at)->addDays($booking->service_id === 1 ? 1 : 2);
|
||||
$days = Carbon::parse($this->created_at->format('d-m-Y'))->addDays($booking->service_id === 1 ? 2 : 3);
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="col text-center">
|
||||
<div class="row m-b-50">
|
||||
<div class="col bg-white padding-15">
|
||||
<h5 class="text-center text-success bold">Congratulation! You've earned and achievement</h5>
|
||||
<h5 class="text-center text-success bold">Congratulation! You've earned an achievement</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
parameters: {
|
||||
amount: {
|
||||
required,
|
||||
minValue: minValue(this.minValue),
|
||||
minValue: 0,
|
||||
},
|
||||
reference: {
|
||||
required: requiredIf(function () { return this.parameters.transaction_type !== 0 })
|
||||
|
||||
Reference in New Issue
Block a user