$discount->getRouteKey(), 'key' => [ 'public' => $discount->getPublicKey(), 'route' => $discount->getRouteKey(), ], 'name' => $discount->name, 'parent_id' => $discount->parent_id, 'category_id' => $discount->category_id, 'product_id' => $discount->product_id, 'discount' => $discount->discount, 'discount_price' => $discount->discount_price, 'valid_from' => $discount->valid_from, 'valid_to' => $discount->valid_to, 'slug' => $discount->slug, 'user_id' => $discount->user_id, 'user_type' => $discount->user_type, 'deleted_at' => $discount->deleted_at, 'url' => [ 'public' => trans_url('discount/'.$discount->getPublicKey()), 'user' => guard_url('discount/discount/'.$discount->getRouteKey()), ], 'status' => trans('app.'.$discount->status), 'created_at' => format_date($discount->created_at), 'updated_at' => format_date($discount->updated_at), ]; } }