public function indexSSR(DataTableSearch $request): JsonResponse 	{ 		$buyers = Buyer::query();  		return DataTables::eloquent($buyers) 		->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(); 			} 		}) 		->addColumn('name', static fn (Buyer $row) => $row->name) 		->addColumn('surname', static fn (Buyer $row) => $row->surname) 		->addColumn('email', static fn (Buyer $row) => $row->email) 		->addColumn('phone', static fn (Buyer $row) => $row->phone) 		->addColumn('oib', static fn (Buyer $row) => $row->oib) 		->addColumn('edit', static fn (Buyer $row): View => view('layouts.edit_button', ['path' => ['buyers.edit' => $row->getKey()]])) 		->addColumn('created_at', static fn (Buyer $row): string => '<td data-order="' . formatTimestamp($row->created_at, 'U') . '">' . formatLocalTimestamp($row->created_at) . '</td>') 		->addColumn('checkbox', static fn (Buyer $row): View => view('layouts.option_buttons', ['value' => $row->getKey()])) 		->addColumn('is_physical_entity', static fn (Buyer $row): View => view('layouts.bool_badge', ['value' => $row->is_physical_entity])) 		->rawColumns([ 			'edit', 			'name', 			'surname', 			'oib', 			'phone', 			'email', 			'is_physical_entity', 			'created_at', 			'checkbox', 		]) 		->toJson(); 	}