$working->getRouteKey(), 'key' => [ 'public' => $working->getPublicKey(), 'route' => $working->getRouteKey(), ], 'id' => $working->id, 'timesheet_id' => $working->timesheet_id, 'date' => $working->date, 'type' => $working->type, 'client_cost' => $working->client_cost, 'staff_cost' => $working->staff_cost, 'hours' => $working->hours, 'created_at' => $working->created_at, 'updated_at' => $working->updated_at, 'deleted_at' => $working->deleted_at, 'url' => [ 'public' => trans_url('timesheet/'.$working->getPublicKey()), 'user' => guard_url('timesheet/working/'.$working->getRouteKey()), ], 'status' => trans('app.'.$working->status), 'created_at' => format_date($working->created_at), 'updated_at' => format_date($working->updated_at), ]; } }