$discount->getRouteKey(), 'key' => [ 'public' => $discount->getPublicKey(), 'route' => $discount->getRouteKey(), ], 'restaurant_id' => $discount->restaurant_id, 'menu_id' => $discount->menu_id, 'discount_percentage' => $discount->discount_percentage, 'active_from' => $discount->active_from, 'active_till' => $discount->active_till, 'edited_at' => $discount->edited_at, 'deleted_at' => $discount->deleted_at, 'PRIMARY' => $discount->PRIMARY, '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), ]; } }