$banner->getRouteKey(), 'key' => [ 'public' => $banner->getPublicKey(), 'route' => $banner->getRouteKey(), ], 'banner_image' => $banner->banner_image, 'banner_status' => $banner->banner_status, 'url' => [ 'public' => trans_url('promotional_banner/'.$banner->getPublicKey()), 'user' => guard_url('promotional_banner/banner/'.$banner->getRouteKey()), ], 'status' => trans('app.'.$banner->status), 'created_at' => format_date($banner->created_at), 'updated_at' => format_date($banner->updated_at), ]; } }