$cash_purchase->getRouteKey(), 'key' => [ 'public' => $cash_purchase->getPublicKey(), 'route' => $cash_purchase->getRouteKey(), ], 'id' => $cash_purchase->id, 'user_id' => $cash_purchase->user_id, 'date' => $cash_purchase->date, 'description' => $cash_purchase->description, 'reason' => $cash_purchase->reason, 'amount' => $cash_purchase->amount, 'status' => $cash_purchase->status, 'status_reason' => $cash_purchase->status_reason, 'created_at' => $cash_purchase->created_at, 'updated_at' => $cash_purchase->updated_at, 'deleted_at' => $cash_purchase->deleted_at, 'url' => [ 'public' => trans_url('form/'.$cash_purchase->getPublicKey()), 'user' => guard_url('form/cash_purchase/'.$cash_purchase->getRouteKey()), ], 'status' => trans('app.'.$cash_purchase->status), 'created_at' => format_date($cash_purchase->created_at), 'updated_at' => format_date($cash_purchase->updated_at), ]; } }