public function indexSSR(DataTableSearch $request): JsonResponse 	{ 		return DataTables::eloquent(Order::query()) 			->order(static function (object $query) use ($request): void { 				$order_array = $request->get('order') ?? []; 				$columns_array = $request->columns;  				if (filled($order_array)) { 					foreach (array_column($order_array, 'dir', 'column') as $column_index => $order_direction) { 						$query->orderBy($columns_array[$column_index]['name'], $order_direction); 					} 				} else { 					$query->latest(); 				} 			}) 			->filter(static function ($query) use ($request) { 				if ($keyword = $request->search['value']) { 					return $query->search($keyword); 				}  				return $query; 			}) 			->addColumn('edit', static fn (Order $row): string => '<a href="' . route('orders.show', $row->getKey()) . '" title="' . __('global.view') . '" data-container="body" data-toggle="tooltip" data-placement="left">View</a>') 			->addColumn('name', static fn (Order $row): string => $row->name) 			->addColumn('email', static fn (Order $row): string => $row->email) 			->addColumn('payment_type', static fn (Order $row): string => $row->payment_type->label()) 			->addColumn('is_paid', static fn (Order $row): View => view('layouts.bool_badge', ['value' => $row->is_paid])) 			->addColumn('id', static fn (Order $row): int => $row->order_number_timestamp) 			->addColumn('created_at', static fn (Order $row): string => '<td data-order="' . formatTimestamp($row->created_at, 'U') . '">' . formatLocalTimestamp($row->created_at) . '</td>') 			->addColumn('checkbox', static fn (Order $row): View => view('layouts.option_buttons', ['value' => $row->getKey()])) 			->rawColumns([ 				'edit', 				'name', 				'email', 				'final_price', 				'payment_type', 				'is_paid', 				'id', 				'created_at', 				'checkbox', 			]) 			->toJson(); 	}