$report->getRouteKey(), 'key' => [ 'public' => $report->getPublicKey(), 'route' => $report->getRouteKey(), ], 'restaurant_id' => $report->restaurant_id, 'name' => $report->name, 'original_total' => $report->original_total, 'corrected_total' => $report->corrected_total, 'refund_total' => $report->refund_total, 'order_count' => $report->order_count, 'tip_total' => $report->tip_total, 'foodsales' => $report->foodsales, 'customer_fee' => $report->customer_fee, 'eatery_fee' => $report->eatery_fee, 'postmates' => $report->postmates, 'orders_date' => $report->orders_date, 'total_visitors' => $report->total_visitors, 'total_pageview' => $report->total_pageview, 'mobile_view' => $report->mobile_view, 'desktop_view' => $report->desktop_view, 'visitors_count' => $report->visitors_count, 'slug' => $report->slug, 'deleted_at' => $report->deleted_at, 'PRIMARY' => $report->PRIMARY, 'url' => [ 'public' => trans_url('report/'.$report->getPublicKey()), 'user' => guard_url('report/report/'.$report->getRouteKey()), ], 'status' => trans('app.'.$report->status), 'created_at' => format_date($report->created_at), 'updated_at' => format_date($report->updated_at), ]; } }