$pricelist->getRouteKey(), 'key' => [ 'public' => $pricelist->getPublicKey(), 'route' => $pricelist->getRouteKey(), ], 'name' => $pricelist->name, 'description' => $pricelist->description, 'type' => $pricelist->type, 'item_rate' => $pricelist->item_rate, 'markup' => $pricelist->markup, 'percentage' => $pricelist->percentage, 'round_off' => $pricelist->round_off, 'user_id' => $pricelist->user_id, 'user_type' => $pricelist->user_type, 'slug' => $pricelist->slug, 'deleted_at' => $pricelist->deleted_at, 'url' => [ 'public' => trans_url('pricelist/'.$pricelist->getPublicKey()), 'user' => guard_url('pricelist/pricelist/'.$pricelist->getRouteKey()), ], 'status' => trans('app.'.$pricelist->status), 'created_at' => format_date($pricelist->created_at), 'updated_at' => format_date($pricelist->updated_at), ]; } }