$orderpostmate->getRouteKey(), 'key' => [ 'public' => $orderpostmate->getPublicKey(), 'route' => $orderpostmate->getRouteKey(), ], 'order_id' => $orderpostmate->order_id, 'service_fee' => $orderpostmate->service_fee, 'delivery_fee' => $orderpostmate->delivery_fee, 'zing_fee' => $orderpostmate->zing_fee, 'deleted_at' => $orderpostmate->deleted_at, 'PRIMARY' => $orderpostmate->PRIMARY, 'url' => [ 'public' => trans_url('orderpostmates/'.$orderpostmate->getPublicKey()), 'user' => guard_url('orderpostmates/orderpostmate/'.$orderpostmate->getRouteKey()), ], 'status' => trans('app.'.$orderpostmate->status), 'created_at' => format_date($orderpostmate->created_at), 'updated_at' => format_date($orderpostmate->updated_at), ]; } }