update transaction timer

This commit is contained in:
omair saleh
2022-03-10 18:58:10 +08:00
parent ba7ce44570
commit 12677d9d15
+1 -1
View File
@@ -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->format('d-m-Y'))->addWeekdays($booking->service_id === 1 ? 2 : 3);
$days = Carbon::parse($this->updated_at->format('d-m-Y'))->addWeekdays($booking->service_id === 1 ? 2 : 3);
return [
'id' => $this->id,