$office->getRouteKey(), 'key' => [ 'public' => $office->getPublicKey(), 'route' => $office->getRouteKey(), ], 'id' => $office->id, 'location_id' => $office->location_id, 'name' => $office->name, 'address' => $office->address, 'postcode' => $office->postcode, 'place' => $office->place, 'phone' => $office->phone, 'fax' => $office->fax, 'email' => $office->email, 'companies' => $office->companies, 'latitude' => $office->latitude, 'longitude' => $office->longitude, 'opening_hours' => $office->opening_hours, 'created_at' => $office->created_at, 'updated_at' => $office->updated_at, 'deleted_at' => $office->deleted_at, 'url' => [ 'public' => trans_url('office/'.$office->getPublicKey()), 'user' => guard_url('office/office/'.$office->getRouteKey()), ], 'status' => trans('app.'.$office->status), 'created_at' => format_date($office->created_at), 'updated_at' => format_date($office->updated_at), ]; } }