$offer->getRouteKey(), 'key' => [ 'public' => $offer->getPublicKey(), 'route' => $offer->getRouteKey(), ], 'id' => $offer->id, 'user_id' => $offer->user_id, 'user_type' => $offer->user_type, 'product_id' => $offer->product_id, 'shop_id' => $offer->shop_id, 'flyer_id' => $offer->flyer_id, 'name' => $offer->name, 'actual_price' => $offer->actual_price, 'discount_price' => $offer->discount_price, 'discount_amount' => $offer->discount_amount, 'discount_percentage' => $offer->discount_percentage, 'min_quantity' => $offer->min_quantity, 'price' => $offer->price, 'startdate' => $offer->startdate, 'enddate' => $offer->enddate, 'quantity' => $offer->quantity, 'images' => $offer->images, 'slug' => $offer->slug, 'created_at' => $offer->created_at, 'updated_at' => $offer->updated_at, 'deleted_at' => $offer->deleted_at, 'url' => [ 'public' => trans_url('deal/'.$offer->getPublicKey()), 'user' => guard_url('deal/offer/'.$offer->getRouteKey()), ], 'status' => trans('app.'.$offer->status), 'created_at' => format_date($offer->created_at), 'updated_at' => format_date($offer->updated_at), ]; } }